This converts the following to Kconfig:
CONFIG_CMD_SDRAM
Signed-off-by: Simon Glass
---
Changes in v2:
- Put Kconfig change in alphabetical order
- Remove some now-superfluous /* commands */ comments in header files
README | 2 --
cmd/Kconfig | 7 +++
configs/MPC8349ITXGP_defconfig | 1 +
configs/MPC8349ITX_LOWBOOT_defconfig | 1 +
configs/MPC8349ITX_defconfig | 1 +
configs/MigoR_defconfig | 1 +
configs/alt_defconfig| 1 +
configs/ap325rxa_defconfig | 1 +
configs/ap_sh4a_4a_defconfig | 1 +
configs/armadillo-800eva_defconfig | 1 +
configs/blanche_defconfig| 1 +
configs/ecovec_defconfig | 1 +
configs/espt_defconfig | 1 +
configs/gose_defconfig | 1 +
configs/koelsch_defconfig| 1 +
configs/lager_defconfig | 1 +
configs/ms7720se_defconfig | 1 +
configs/ms7722se_defconfig | 1 +
configs/porter_defconfig | 1 +
configs/r0p7734_defconfig| 1 +
configs/r7780mp_defconfig| 1 +
configs/r8a7795_salvator-x_defconfig | 1 +
configs/r8a7796_salvator-x_defconfig | 1 +
configs/rsk7203_defconfig| 1 +
configs/sh7752evb_defconfig | 1 +
configs/sh7753evb_defconfig | 1 +
configs/sh7757lcr_defconfig | 1 +
configs/sh7763rdp_defconfig | 1 +
configs/sh7785lcr_32bit_defconfig| 1 +
configs/sh7785lcr_defconfig | 1 +
configs/shmin_defconfig | 1 +
configs/silk_defconfig | 1 +
configs/socrates_defconfig | 1 +
configs/stout_defconfig | 1 +
include/config_cmd_all.h | 1 -
include/configs/MPC8349ITX.h | 5 -
include/configs/MigoR.h | 2 --
include/configs/ap325rxa.h | 2 --
include/configs/ap_sh4a_4a.h | 2 --
include/configs/armadillo-800eva.h | 2 --
include/configs/ecovec.h | 2 --
include/configs/espt.h | 5 -
include/configs/ms7720se.h | 2 --
include/configs/ms7722se.h | 2 --
include/configs/r0p7734.h| 2 --
include/configs/r7780mp.h| 5 -
include/configs/rcar-gen2-common.h | 2 --
include/configs/rcar-gen3-common.h | 1 -
include/configs/rsk7203.h| 2 --
include/configs/sh7752evb.h | 2 --
include/configs/sh7753evb.h | 2 --
include/configs/sh7757lcr.h | 2 --
include/configs/sh7763rdp.h | 5 -
include/configs/sh7785lcr.h | 1 -
include/configs/shmin.h | 2 --
include/configs/socrates.h | 5 -
scripts/config_whitelist.txt | 1 -
57 files changed, 39 insertions(+), 59 deletions(-)
diff --git a/README b/README
index 318a4aa25d..2371304279 100644
--- a/README
+++ b/README
@@ -815,8 +815,6 @@ The following options need to be configured:
CONFIG_CMD_PING * send ICMP ECHO_REQUEST to network
host
CONFIG_CMD_RUNrun command in env variable
- CONFIG_CMD_SDRAM* print SDRAM configuration information
- (requires CONFIG_CMD_I2C)
CONFIG_CMD_SF * Read/write/erase SPI NOR flash
CONFIG_CMD_SOFTSWITCH * Soft switch setting command for BF60x
CONFIG_CMD_SOURCE "source" command Support
diff --git a/cmd/Kconfig b/cmd/Kconfig
index c74acd535b..6431d7c70f 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -776,6 +776,13 @@ config CMD_SAVES
Provides a way to save a binary file using the Motorola S-Record
format over the serial line.
+config CMD_SDRAM
+ bool "sdram - Print SDRAM configuration information"
+ help
+ Provides information about attached SDRAM. This assumed that the
+ SDRAM has an EEPROM with information that can be read using the
+ I2C bus. This is only available on some boards.
+
config CMD_SF
bool "sf"
help
diff --git a/configs/MPC8349ITXGP_defconfig b/configs/MPC8349ITXGP_defconfig
index 09af09d4c3..f1cfd3705c 100644
--- a/configs/MPC8349ITXGP_defconfig
+++ b/configs/MPC8349ITXGP_defconfig
@@ -9,6 +9,7 @@ CONFIG_HUSH_PARSER=y
CONFIG_SYS_PROMPT="MPC8349E-mITX-GP> "
CONFIG_CMD_I2C=y
CONFIG_CMD_PCI=y
+CONFIG_CMD_SDRAM=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_DHCP=y
CONFIG_CMD_PING=y
diff --git a/configs/MPC8349ITX_LOWBOOT_defconfig
b/configs/MPC8349ITX_LOWBOOT_defconfig
index 0650c7979a..4974dd1a9c 100644
--- a/configs/MPC8349ITX_LOWBOOT_defconfig
+++ b/configs/MPC8349ITX_LOWBOOT_defconfig
@@ -12,6 +12,7 @@ CONFIG_CMD_I2C=y
CONFIG_CMD_USB=y
CONFIG_CMD_SATA=y
CONFIG_CMD_PCI=y
+CONFIG_CMD_SDRAM=y
# CONFIG_CMD_SETEXPR is not set
CONFIG_CMD_DHCP=y
CONFIG_CMD_PING=y
diff --git a/configs/MPC8349ITX_defconfig b/configs/MPC8349I