[U-Boot] [RFC PATCH 1/4] sunxi: hide DRAM parameter options when not building SPL

Icenowy Zheng icenowy at aosc.io
Sat Dec 30 15:40:25 UTC 2017


The DRAM parameters are only used in the DRAM initialization stage in
SPL.

When SPL is not built, these parameters are useless, so hide them.

Signed-off-by: Icenowy Zheng <icenowy at aosc.io>
---
 arch/arm/mach-sunxi/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index 09cfec6f57..d944e7c015 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -273,6 +273,7 @@ config DRAM_TYPE
 
 config DRAM_CLK
 	int "sunxi dram clock speed"
+	depends on SPL
 	default 792 if MACH_SUN9I
 	default 648 if MACH_SUN8I_R40
 	default 312 if MACH_SUN6I || MACH_SUN8I
@@ -295,6 +296,7 @@ endif
 
 config DRAM_ZQ
 	int "sunxi dram zq value"
+	depends on SPL
 	default 123 if MACH_SUN4I || MACH_SUN5I || MACH_SUN6I || MACH_SUN8I
 	default 127 if MACH_SUN7I
 	default 14779 if MACH_SUN8I_V3S
@@ -306,6 +308,7 @@ config DRAM_ZQ
 
 config DRAM_ODT_EN
 	bool "sunxi dram odt enable"
+	depends on SPL
 	default n if !MACH_SUN8I_A23
 	default y if MACH_SUN8I_A23
 	default y if MACH_SUN8I_R40
-- 
2.14.2



More information about the U-Boot mailing list