Commit ea624e1951f1208ae619888be4c03f058e65c572
Committed by
Albert ARIBAUD
1 parent
1bf0979f5f
Exists in
v2017.01-smarct4x
and in
37 other branches
ARM: Add arch/arm/cpu/armv7/Kconfig with non-secure and virt options
Add arch/arm/cpu/armv7/Kconfig with non-secure and virt options, this is a preparation patch for adding an env variable to choose between secure / non-secure boot on non-secure boot capable systems, specifically this prepares for adding CONFIG_ARMV7_BOOT_SEC_DEFAULT as a proper Kconfig option. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Showing 7 changed files with 31 additions and 6 deletions Side-by-side Diff
arch/arm/Kconfig
... | ... | @@ -413,6 +413,8 @@ |
413 | 413 | config TARGET_VEXPRESS_CA15_TC2 |
414 | 414 | bool "Support vexpress_ca15_tc2" |
415 | 415 | select CPU_V7 |
416 | + select CPU_V7_HAS_NONSEC | |
417 | + select CPU_V7_HAS_VIRT | |
416 | 418 | |
417 | 419 | config TARGET_VEXPRESS_CA5X2 |
418 | 420 | bool "Support vexpress_ca5x2" |
... | ... | @@ -811,6 +813,8 @@ |
811 | 813 | source "arch/arm/cpu/arm926ejs/versatile/Kconfig" |
812 | 814 | |
813 | 815 | source "arch/arm/cpu/armv7/zynq/Kconfig" |
816 | + | |
817 | +source "arch/arm/cpu/armv7/Kconfig" | |
814 | 818 | |
815 | 819 | source "board/aristainetos/Kconfig" |
816 | 820 | source "board/BuR/kwb/Kconfig" |
arch/arm/cpu/armv7/Kconfig
1 | +if CPU_V7 | |
2 | + | |
3 | +config CPU_V7_HAS_NONSEC | |
4 | + bool | |
5 | + | |
6 | +config CPU_V7_HAS_VIRT | |
7 | + bool | |
8 | + | |
9 | +config ARMV7_NONSEC | |
10 | + boolean "Enable support for booting in non-secure mode" if EXPERT | |
11 | + depends on CPU_V7_HAS_NONSEC | |
12 | + default y | |
13 | + ---help--- | |
14 | + Say Y here to enable support for booting in non-secure / SVC mode. | |
15 | + | |
16 | +config ARMV7_VIRT | |
17 | + boolean "Enable support for hardware virtualization" if EXPERT | |
18 | + depends on CPU_V7_HAS_VIRT && ARMV7_NONSEC | |
19 | + default y | |
20 | + ---help--- | |
21 | + Say Y here to boot in hypervisor (HYP) mode when booting non-secure. | |
22 | + | |
23 | +endif |
arch/arm/cpu/armv7/exynos/Kconfig
board/sunxi/Kconfig
include/configs/arndale.h
include/configs/sun7i.h