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 <[email protected]>
---
 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

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to