Skip to content

Commit

Permalink
Convert CONFIG_SPD_EEPROM to Kconfig
Browse files Browse the repository at this point in the history
This converts the following to Kconfig:
   CONFIG_SPD_EEPROM

Cc: Stefan Roese <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
  • Loading branch information
trini committed Dec 5, 2022
1 parent d913652 commit 8ce59b5
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
7 changes: 0 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -1683,13 +1683,6 @@ Low Level (hardware related) configuration options:
Sets the EBC0_CFG register for the NDFC. If not defined
a default value will be used.

- CONFIG_SPD_EEPROM
Get DDR timing information from an I2C EEPROM. Common
with pluggable memory modules such as SODIMMs

SPD_EEPROM_ADDRESS
I2C address of the SPD EEPROM

- CONFIG_SYS_SPD_BUS_NUM
If SPD EEPROM is on an I2C bus other than the first
one, specify here. Note that the value must resolve
Expand Down
1 change: 1 addition & 0 deletions configs/MPC8548CDS_36BIT_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ CONFIG_USE_BOOTFILE=y
CONFIG_BOOTFILE="8548cds/uImage.uboot"
CONFIG_USE_ETHPRIME=y
CONFIG_ETHPRIME="eTSEC0"
CONFIG_SPD_EEPROM=y
CONFIG_CHIP_SELECTS_PER_CTRL=2
CONFIG_DDR_ECC=y
CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
Expand Down
1 change: 1 addition & 0 deletions configs/MPC8548CDS_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ CONFIG_USE_BOOTFILE=y
CONFIG_BOOTFILE="8548cds/uImage.uboot"
CONFIG_USE_ETHPRIME=y
CONFIG_ETHPRIME="eTSEC0"
CONFIG_SPD_EEPROM=y
CONFIG_CHIP_SELECTS_PER_CTRL=2
CONFIG_DDR_ECC=y
CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
Expand Down
1 change: 1 addition & 0 deletions configs/MPC8548CDS_legacy_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ CONFIG_USE_BOOTFILE=y
CONFIG_BOOTFILE="8548cds/uImage.uboot"
CONFIG_USE_ETHPRIME=y
CONFIG_ETHPRIME="eTSEC0"
CONFIG_SPD_EEPROM=y
CONFIG_CHIP_SELECTS_PER_CTRL=2
CONFIG_DDR_ECC=y
CONFIG_ECC_INIT_VIA_DDRCONTROLLER=y
Expand Down
1 change: 1 addition & 0 deletions configs/socrates_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
CONFIG_ENV_ADDR_REDUND=0xFFF20000
CONFIG_USE_ETHPRIME=y
CONFIG_ETHPRIME="TSEC0"
CONFIG_SPD_EEPROM=y
CONFIG_CHIP_SELECTS_PER_CTRL=2
CONFIG_SYS_BR0_PRELIM_BOOL=y
CONFIG_SYS_BR0_PRELIM=0xFE001001
Expand Down
8 changes: 8 additions & 0 deletions drivers/ddr/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ config SYS_SPD_BUS_NUM

source "drivers/ddr/altera/Kconfig"
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
help
Get DDR timing information from an I2C EEPROM. Common with pluggable
memory modules such as SODIMMs. You must define SPD_EEPROM_ADDRESS
to the I2C address of the SPD EEPROM.
1 change: 0 additions & 1 deletion include/configs/MPC8548CDS.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#define CFG_SYS_CCSRBAR_PHYS_LOW CFG_SYS_CCSRBAR

/* DDR Setup */
#define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup*/

#define CONFIG_MEM_INIT_VALUE 0xDeadBeef

Expand Down
3 changes: 0 additions & 3 deletions include/configs/db-mv784mp-gp.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,4 @@
/* SPL */
/* Defines for SPL */

/* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */
#define CONFIG_SPD_EEPROM 0x4e

#endif /* _CONFIG_DB_MV7846MP_GP_H */
1 change: 0 additions & 1 deletion include/configs/socrates.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#define CFG_SYS_CCSRBAR_PHYS_LOW CFG_SYS_CCSRBAR

/* DDR Setup */
#define CONFIG_SPD_EEPROM /* Use SPD EEPROM for DDR setup */

#define CONFIG_MEM_INIT_VALUE 0xDeadBeef

Expand Down

0 comments on commit 8ce59b5

Please sign in to comment.