Add MHU interface and adapter
The interface definition is the same as the mhu.h common interface
that is coming from the TF-M project. The adapter just forwards the
calls to the MHU wrapper.
The OpenAMP was not updated to use this new interface because it will be
deprecated and the Secure (TF-M) side implementation does not use the
mhu.h and wrapper, which would be required to make it work correctly.
The MHU driver and wrapper have some minor changes, mainly addressing
cppcheck issues and input parameter NULL checkings.
Signed-off-by: Bence Balogh <bence.balogh@arm.com>
Change-Id: Ia4d6e6e068aa67d86098dfd1da6fc99d73582373
diff --git a/components/messaging/openamp/sp/component.cmake b/components/messaging/openamp/sp/component.cmake
index cee76a0..f5b3d84 100644
--- a/components/messaging/openamp/sp/component.cmake
+++ b/components/messaging/openamp/sp/component.cmake
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
+# Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -22,3 +22,7 @@
PUBLIC
"${CMAKE_CURRENT_LIST_DIR}"
)
+
+set_property(TARGET ${TGT} APPEND PROPERTY TS_PLATFORM_DRIVER_DEPENDENCIES
+ "mhu"
+)