imx: mx7: default enable non-secure mode
authorPeng Fan <Peng.Fan@freescale.com>
Fri, 23 Oct 2015 02:13:05 +0000 (10:13 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 12 Nov 2015 16:31:31 +0000 (17:31 +0100)
Support PSCI and switch to non-secure mode when booting linux.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
include/configs/mx7_common.h

index ffe4d81656120b1a9f78ff54faad37f0bd8cd597..5615a348e8dbf3d62b733da3440f9fc5ec12f7ba 100644 (file)
 #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