mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 22:51:37 +00:00
mx7_common: use Kconfig for ARMv7 non-secure mode
Use existing Kconfig symbols to let the user configure whether to build a U-Boot with non-secure mode support or not. This also allows to enable virtualization extension easily. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
This commit is contained in:
parent
47855a5c3b
commit
be1a17ff68
4 changed files with 4 additions and 7 deletions
|
@ -3,6 +3,8 @@ if ARCH_MX7
|
||||||
config MX7
|
config MX7
|
||||||
bool
|
bool
|
||||||
select ROM_UNIFIED_SECTIONS
|
select ROM_UNIFIED_SECTIONS
|
||||||
|
select CPU_V7_HAS_VIRT
|
||||||
|
select CPU_V7_HAS_NONSEC
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config MX7D
|
config MX7D
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_ARCH_MX7=y
|
CONFIG_ARCH_MX7=y
|
||||||
CONFIG_TARGET_MX7DSABRESD=y
|
CONFIG_TARGET_MX7DSABRESD=y
|
||||||
|
# CONFIG_ARMV7_VIRT is not set
|
||||||
CONFIG_IMX_RDC=y
|
CONFIG_IMX_RDC=y
|
||||||
CONFIG_IMX_BOOTAUX=y
|
CONFIG_IMX_BOOTAUX=y
|
||||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx7dsabresd/imximage.cfg"
|
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx7dsabresd/imximage.cfg"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_ARCH_MX7=y
|
CONFIG_ARCH_MX7=y
|
||||||
CONFIG_TARGET_WARP7=y
|
CONFIG_TARGET_WARP7=y
|
||||||
|
# CONFIG_ARMV7_VIRT is not set
|
||||||
CONFIG_IMX_RDC=y
|
CONFIG_IMX_RDC=y
|
||||||
CONFIG_IMX_BOOTAUX=y
|
CONFIG_IMX_BOOTAUX=y
|
||||||
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/warp7/imximage.cfg"
|
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/warp7/imximage.cfg"
|
||||||
|
|
|
@ -71,15 +71,8 @@
|
||||||
#define CONFIG_CMD_FUSE
|
#define CONFIG_CMD_FUSE
|
||||||
#define CONFIG_MXC_OCOTP
|
#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
|
||||||
#define CONFIG_ARMV7_PSCI_NR_CPUS 2
|
#define CONFIG_ARMV7_PSCI_NR_CPUS 2
|
||||||
#define CONFIG_ARMV7_SECURE_BASE 0x00900000
|
#define CONFIG_ARMV7_SECURE_BASE 0x00900000
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue