Implement RPMB frontend

The RPMB frontend provides a high level read/write interface for
accessing the RPMB device and it does calls to the RPMB backend. This
component contains the main RPMB logic, including:

* Writing authentication key
* Handling the write counter
* Building and verifying RPMB data frames

Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I2bd2589f4f99370381e1594beb4e04921c3fba36
diff --git a/components/service/rpmb/frontend/component.cmake b/components/service/rpmb/frontend/component.cmake
new file mode 100644
index 0000000..d3dd4bf
--- /dev/null
+++ b/components/service/rpmb/frontend/component.cmake
@@ -0,0 +1,23 @@
+#-------------------------------------------------------------------------------
+# Copyright (c) 2023, Arm Limited and Contributors. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+#-------------------------------------------------------------------------------
+if (NOT DEFINED TGT)
+	message(FATAL_ERROR "mandatory parameter TGT is not defined.")
+endif()
+
+target_sources(${TGT} PRIVATE
+	"${CMAKE_CURRENT_LIST_DIR}/rpmb_frontend.c"
+)
+
+set(RPMB_WRITE_KEY FALSE CACHE BOOL "Enable RPMB Authentication Key Write")
+
+if (RPMB_WRITE_KEY)
+set(_RPMB_WRITE_KEY 1)
+else()
+set(_RPMB_WRITE_KEY 0)
+endif()
+
+target_compile_definitions(${TGT} PRIVATE RPMB_WRITE_KEY=${_RPMB_WRITE_KEY})