]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ddr: Migrate DDR_SPD to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 21 Aug 2021 17:50:16 +0000 (13:50 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 31 Aug 2021 21:46:37 +0000 (17:46 -0400)
Move the symbol that controls building some JEDEC SPD support functions
to Kconfig.  This is required on the TI keystone 2 platforms and very
frequently (but not always) used on large number of Freescale/NXP
platforms, so use imply there.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/Kconfig
drivers/ddr/Kconfig
drivers/ddr/fsl/Kconfig

index 30fb7b6a5f3f7fafa884a79c865daae50471e49b..c97acca2afaf61db272e1708f5ef043ea9382eac 100644 (file)
@@ -729,6 +729,7 @@ config ARCH_KEYSTONE
        bool "TI Keystone"
        select CMD_POWEROFF
        select CPU_V7A
+       select DDR_SPD
        select GPIO_EXTRA_HEADER
        select SUPPORT_SPL
        select SYS_ARCH_TIMER
index d4b393d25e07977be1c5fca14429b3878ff1691e..0b767acee81169e576ccaa8f3c6c55db289d3c42 100644 (file)
@@ -1,2 +1,8 @@
+config DDR_SPD
+       bool "JEDEC Serial Presence Detect (SPD) support"
+       help
+         For memory controllers that can utilize it, add enable support for
+         using the JEDEC SDP standard.
+
 source "drivers/ddr/altera/Kconfig"
 source "drivers/ddr/imx/Kconfig"
index 8246f627982c1ff27ad5c011ed2192e2bbd03dbe..6461a54d7a8e48b16ea8979cfe98bd102beb3eb4 100644 (file)
@@ -116,22 +116,26 @@ choice
 config SYS_FSL_DDR4
        bool "Freescale DDR4 controller"
        depends on SYS_FSL_HAS_DDR4
+       imply DDR_SPD
        select SYS_FSL_DDRC_GEN4
 
 config SYS_FSL_DDR3
        bool "Freescale DDR3 controller"
        depends on SYS_FSL_HAS_DDR3
+       imply DDR_SPD
        select SYS_FSL_DDRC_GEN3 if PPC
        select SYS_FSL_DDRC_ARM_GEN3 if ARM
 
 config SYS_FSL_DDR2
        bool "Freescale DDR2 controller"
        depends on SYS_FSL_HAS_DDR2
+       imply DDR_SPD
        select SYS_FSL_DDRC_GEN2 if (!MPC86xx && !SYS_FSL_DDRC_GEN3)
 
 config SYS_FSL_DDR1
        bool "Freescale DDR1 controller"
        depends on SYS_FSL_HAS_DDR1
+       imply DDR_SPD
        select SYS_FSL_DDRC_GEN1
 
 endchoice