[U-Boot] [PATCH V4 3/3] imx: mx7: default enable non-secure mode
Peng Fan
Peng.Fan at freescale.com
Fri Oct 23 04:13:05 CEST 2015
Support PSCI and switch to non-secure mode when booting linux.
Signed-off-by: Peng Fan <Peng.Fan at freescale.com>
Signed-off-by: Frank Li <Frank.Li at freescale.com>
Cc: Stefano Babic <sbabic at denx.de>
Cc: Fabio Estevam <fabio.estevam at freescale.com>
---
Changes v4:
Discard unused 1's when define macros.
Changes V3:
none
Changes V2:
default no enable CONFIG_ARMV7_VIRT
include/configs/mx7_common.h | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/include/configs/mx7_common.h b/include/configs/mx7_common.h
index ea2be49..508d1d3 100644
--- a/include/configs/mx7_common.h
+++ b/include/configs/mx7_common.h
@@ -92,4 +92,15 @@
#define CONFIG_CMD_FUSE
#define CONFIG_MXC_OCOTP
+/*
+ * Default boot linux kernel in no secure mode.
+ * If want to boot kernel in secure mode, please define CONFIG_MX7_SEC
+ */
+#ifndef CONFIG_MX7_SEC
+#define CONFIG_ARMV7_NONSEC
+#define CONFIG_ARMV7_PSCI
+#define CONFIG_ARMV7_PSCI_NR_CPUS 2
+#define CONFIG_ARMV7_SECURE_BASE 0x00900000
+#endif
+
#endif
--
1.8.4
More information about the U-Boot
mailing list