Platform: Use NS alias for QSPI regs on Musca-A
Changes CMSIS driver config for Musca-A so that the QSPI flash
controller registers are accessed through their non-secure alias.
Change-Id: I08ee30601a81cf39d3d32557c2bc5fa491d68623
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
diff --git a/platform/ext/target/musca_a/CMSIS_Driver/Config/cmsis_driver_config.h b/platform/ext/target/musca_a/CMSIS_Driver/Config/cmsis_driver_config.h
index 8e598c7..68fff4b 100644
--- a/platform/ext/target/musca_a/CMSIS_Driver/Config/cmsis_driver_config.h
+++ b/platform/ext/target/musca_a/CMSIS_Driver/Config/cmsis_driver_config.h
@@ -26,7 +26,13 @@
#define UART0_DEV UART0_PL011_DEV_NS
#define UART1_DEV UART1_PL011_DEV_NS
-#define FLASH0_DEV MT25QL_DEV_S
+/* Note: On Musca-A all expansion peripherals, including the flash controller,
+ * are configured by a single PPC bit position (see section 3.3.6 of the Musca-A
+ * Technical Reference Manual for details). This is set to non-secure to allow
+ * the UART (and other peripherals) to be accessed from NS code, so the flash
+ * controller must also be accessed through its non-secure alias.
+ */
+#define FLASH0_DEV MT25QL_DEV_NS
#define MPC_ISRAM0_DEV MPC_ISRAM0_DEV_S
#define MPC_ISRAM1_DEV MPC_ISRAM1_DEV_S