MLCE-864: Enabling I-Cache and D-Cache for MPS3

Both supported implementation on MPS3 (Arm Corstone-300 and
Arm Corstone-310) will now have caches enabled.

Also including a minor change left over from refactoring of
code for HAL components.

Change-Id: Ie5768cd26eef9083a817bca7c87ff691dae67fca
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 @@
         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)