[U-Boot] [RFC PATCH] ARMv8: add Kconfig and CPU_V8 option

fenghua at phytium.com.cn fenghua at phytium.com.cn
Tue Feb 3 10:19:35 CET 2015


From: David Feng <fenghua at phytium.com.cn>

This patch add Kconfig to armv8.

Signed-off-by: David Feng <fenghua at phytium.com.cn>
---
 arch/arm/Kconfig           |   16 +++++++++++-----
 arch/arm/cpu/armv8/Kconfig |   10 ++++++++++
 2 files changed, 21 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/cpu/armv8/Kconfig

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 986b4c5..a01cb3c 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -33,6 +33,10 @@ config CPU_V7
         bool
         select HAS_VBAR
 
+config CPU_V8
+        bool
+        select ARM64
+
 config CPU_PXA
         bool
 
@@ -729,24 +733,24 @@ config TEGRA
 
 config TARGET_VEXPRESS64_AEMV8A
 	bool "Support vexpress_aemv8a"
-	select ARM64
+	select CPU_V8
 
 config TARGET_VEXPRESS64_BASE_FVP
 	bool "Support Versatile Express ARMv8a FVP BASE model"
-	select ARM64
+	select CPU_V8
 	select SEMIHOSTING
 
 config TARGET_VEXPRESS64_JUNO
 	bool "Support Versatile Express Juno Development Platform"
-	select ARM64
+	select CPU_V8
 
 config TARGET_LS2085A_EMU
 	bool "Support ls2085a_emu"
-	select ARM64
+	select CPU_V8
 
 config TARGET_LS2085A_SIMU
 	bool "Support ls2085a_simu"
-	select ARM64
+	select CPU_V8
 
 config TARGET_LS1021AQDS
 	bool "Support ls1021aqds"
@@ -855,6 +859,8 @@ source "arch/arm/cpu/armv7/zynq/Kconfig"
 
 source "arch/arm/cpu/armv7/Kconfig"
 
+source "arch/arm/cpu/armv8/Kconfig"
+
 source "board/aristainetos/Kconfig"
 source "board/BuR/kwb/Kconfig"
 source "board/BuR/tseries/Kconfig"
diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig
new file mode 100644
index 0000000..5953848
--- /dev/null
+++ b/arch/arm/cpu/armv8/Kconfig
@@ -0,0 +1,10 @@
+if CPU_V8
+
+menu "ARMv8"
+
+config ARMV8_SWITCH_TO_EL1
+	boolean "Switch to exception level 1 when loading OS"
+
+endmenu
+
+endif
-- 
1.7.9.5




More information about the U-Boot mailing list