Skip to contentSkip to conversation

ddr: Fix the SPD EEPROM dependency for Armada XP

PATCH In review Pengpeng Hou 2 participants 3 messages Sep 6 – Oct 5

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ddr: Fix the SPD EEPROM dependency for Armada XP

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")

---
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(-)
drivers/ddr/Kconfig +1 -1
index fa873cc48..c1bbaf7c1 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Pengpeng Hou

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")

Thanks,
Stefan

#2 lore raw
In reply to Pengpeng Hou
Quoted 11 lines · Pengpeng Hou

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")

Applied to u-boot-marvell/next

Thanks,
Stefan