summaryrefslogtreecommitdiff
path: root/source/hal/source/platform/mps3/source/platform_drivers.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/hal/source/platform/mps3/source/platform_drivers.c')
-rw-r--r--source/hal/source/platform/mps3/source/platform_drivers.c10
1 files changed, 10 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 801cd0b..7c5de6d 100644
--- a/source/hal/source/platform/mps3/source/platform_drivers.c
+++ b/source/hal/source/platform/mps3/source/platform_drivers.c
@@ -65,6 +65,16 @@ int platform_init(void)
return err;
}
+#if defined(__ICACHE_PRESENT) && (__ICACHE_PRESENT == 1U)
+ info("Enabling I-cache.\n");
+ SCB_EnableICache();
+#endif /* __ICACHE_PRESENT */
+
+#if defined(__DCACHE_PRESENT) && (__DCACHE_PRESENT == 1U)
+ info("Enabling D-cache.\n");
+ SCB_EnableDCache();
+#endif /* __DCACHE_PRESENT */
+
#if defined(ARM_NPU)
#if defined(ETHOS_U_NPU_TIMING_ADAPTER_ENABLED)