Kconfig expressions use symbol names without the generated CONFIG_
prefix.  SPD_EEPROM currently depends on the undefined
CONFIG_ARMADA_XP symbol, so the Armada XP branch of the dependency can
never be satisfied.

Use ARMADA_XP, which is selected by the supported Armada XP SoC types.
This restores the option for boards whose DDR setup reads DIMM timing
from the SPD EEPROM without enabling it by default.

Fixes: 8ce59b593294 ("Convert CONFIG_SPD_EEPROM to Kconfig")
Signed-off-by: Pengpeng Hou <[email protected]>
---
Testing:
- Generated db-mv784mp-gp_defconfig, enabled SPD_EEPROM, ran
  olddefconfig, and verified that SPD_EEPROM remains enabled.

 drivers/ddr/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ddr/Kconfig b/drivers/ddr/Kconfig
index fa873cc48..c1bbaf7c1 100644
--- a/drivers/ddr/Kconfig
+++ b/drivers/ddr/Kconfig
@@ -40,7 +40,7 @@ source "drivers/ddr/imx/Kconfig"
 
 config SPD_EEPROM
        bool "DDR controller makes use of an SPD EEPROM for JEDEC information"
-       depends on SYS_FSL_DDR || SYS_FSL_MMDC || CONFIG_ARMADA_XP
+       depends on SYS_FSL_DDR || SYS_FSL_MMDC || ARMADA_XP
        help
          Get DDR timing information from an I2C EEPROM. Common with pluggable
          memory modules such as SODIMMs. You must define SPD_EEPROM_ADDRESS

Reply via email to