summaryrefslogtreecommitdiff
path: root/source/hal/source/platform/mps3/source/platform_drivers.c
diff options
context:
space:
mode:
authorKshitij Sisodia <kshitij.sisodia@arm.com>2022-03-24 17:53:34 +0000
committerKshitij Sisodia <kshitij.sisodia@arm.com>2022-03-28 11:55:25 +0000
commit8bc863dd6a7d0937aa66df655a7fe0e235dd2d4f (patch)
tree4556b53e06e0dc731710c93d96ebb6c2118a980f /source/hal/source/platform/mps3/source/platform_drivers.c
parentf98d0628d43b12feb7e05c97da2608d384cfd7ee (diff)
downloadml-embedded-evaluation-kit-8bc863dd6a7d0937aa66df655a7fe0e235dd2d4f.tar.gz
MLECO-2917 Replacing platform CMake definitions with headers
Moving away from CMake description of targets and generation of platform header files (for memory addresses and IRQ numbers). Instead these headers are part of the repository under their respective platform-driver packages under HAL sources. Change-Id: I9bd3e68eb17385f8b93eb3d8d76b212ce0e1a6d5 Signed-off-by: Kshitij Sisodia <kshitij.sisodia@arm.com>
Diffstat (limited to 'source/hal/source/platform/mps3/source/platform_drivers.c')
-rw-r--r--source/hal/source/platform/mps3/source/platform_drivers.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/hal/source/platform/mps3/source/platform_drivers.c b/source/hal/source/platform/mps3/source/platform_drivers.c
index 5de41c2..17ccdf2 100644
--- a/source/hal/source/platform/mps3/source/platform_drivers.c
+++ b/source/hal/source/platform/mps3/source/platform_drivers.c
@@ -30,6 +30,14 @@
#include "ethosu_ta_init.h"
#endif /* ETHOS_U_NPU_TIMING_ADAPTER_ENABLED */
+#if defined(ETHOS_U_BASE_ADDR)
+ #if (ETHOS_U_NPU_BASE != ETHOS_U_BASE_ADDR) && (SEC_ETHOS_U_NPU_BASE != ETHOS_U_BASE_ADDR)
+ #error "NPU component configured with incorrect NPU base address."
+ #endif /* (ETHOS_U_NPU_BASE != ETHOS_U_BASE_ADDR) && (SEC_ETHOS_U_NPU_BASE == ETHOS_U_BASE_ADDR) */
+#else
+ #error "ETHOS_U_BASE_ADDR should have been defined by the NPU component."
+#endif /* defined(ETHOS_U_BASE_ADDR) */
+
#endif /* ARM_NPU */
/**