diff mbox

[U-Boot,v2,16/42] Convert CONFIG_CMD_REGINFO to Kconfig

Message ID 20170804223506.105306-17-sjg@chromium.org
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Simon Glass Aug. 4, 2017, 10:34 p.m. UTC
From: Christophe Leroy <christophe.leroy@c-s.fr>

This patch converts CONFIG_CMD_REGINFO to Kconfig

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2:
- Fixed lots of merge conflicts with my series
- Pull in this patch from http://patchwork.ozlabs.org/patch/787724/ instead

 README                           | 1 -
 arch/powerpc/Kconfig             | 3 +++
 cmd/Kconfig                      | 5 +++++
 include/config_cmd_all.h         | 1 -
 include/configs/B4860QDS.h       | 5 -----
 include/configs/BSC9131RDB.h     | 5 -----
 include/configs/BSC9132QDS.h     | 5 -----
 include/configs/C29XPCIE.h       | 5 -----
 include/configs/MCR3000.h        | 3 ---
 include/configs/MPC8536DS.h      | 5 -----
 include/configs/MPC8541CDS.h     | 5 -----
 include/configs/MPC8544DS.h      | 5 -----
 include/configs/MPC8548CDS.h     | 5 -----
 include/configs/MPC8555CDS.h     | 5 -----
 include/configs/MPC8560ADS.h     | 8 --------
 include/configs/MPC8568MDS.h     | 5 -----
 include/configs/MPC8569MDS.h     | 5 -----
 include/configs/MPC8572DS.h      | 5 -----
 include/configs/MPC8610HPCD.h    | 2 --
 include/configs/MPC8641HPCN.h    | 5 -----
 include/configs/P1010RDB.h       | 5 -----
 include/configs/P1022DS.h        | 5 -----
 include/configs/P1023RDB.h       | 5 -----
 include/configs/T102xQDS.h       | 5 -----
 include/configs/T102xRDB.h       | 5 -----
 include/configs/T1040QDS.h       | 5 -----
 include/configs/T104xRDB.h       | 5 -----
 include/configs/T208xQDS.h       | 5 -----
 include/configs/T208xRDB.h       | 5 -----
 include/configs/T4240RDB.h       | 2 --
 include/configs/TQM834x.h        | 5 -----
 include/configs/UCP1020.h        | 5 -----
 include/configs/controlcenterd.h | 3 ---
 include/configs/corenet_ds.h     | 5 -----
 include/configs/cyrus.h          | 5 -----
 include/configs/p1_p2_rdb_pc.h   | 5 -----
 include/configs/p1_twr.h         | 5 -----
 include/configs/qemu-ppce500.h   | 2 --
 include/configs/sbc8548.h        | 5 -----
 include/configs/sbc8641d.h       | 2 --
 include/configs/smdkc100.h       | 3 ---
 include/configs/socrates.h       | 1 -
 include/configs/t4qds.h          | 2 --
 include/configs/xpedite517x.h    | 5 -----
 include/configs/xpedite520x.h    | 5 -----
 include/configs/xpedite537x.h    | 5 -----
 include/configs/xpedite550x.h    | 5 -----
 scripts/config_whitelist.txt     | 1 -
 48 files changed, 8 insertions(+), 196 deletions(-)

Comments

Bin Meng Aug. 5, 2017, 3:40 a.m. UTC | #1
On Sat, Aug 5, 2017 at 6:34 AM, Simon Glass <sjg@chromium.org> wrote:
> From: Christophe Leroy <christophe.leroy@c-s.fr>
>
> This patch converts CONFIG_CMD_REGINFO to Kconfig
>
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> Changes in v2:
> - Fixed lots of merge conflicts with my series
> - Pull in this patch from http://patchwork.ozlabs.org/patch/787724/ instead
>
>  README                           | 1 -
>  arch/powerpc/Kconfig             | 3 +++
>  cmd/Kconfig                      | 5 +++++
>  include/config_cmd_all.h         | 1 -
>  include/configs/B4860QDS.h       | 5 -----
>  include/configs/BSC9131RDB.h     | 5 -----
>  include/configs/BSC9132QDS.h     | 5 -----
>  include/configs/C29XPCIE.h       | 5 -----
>  include/configs/MCR3000.h        | 3 ---
>  include/configs/MPC8536DS.h      | 5 -----
>  include/configs/MPC8541CDS.h     | 5 -----
>  include/configs/MPC8544DS.h      | 5 -----
>  include/configs/MPC8548CDS.h     | 5 -----
>  include/configs/MPC8555CDS.h     | 5 -----
>  include/configs/MPC8560ADS.h     | 8 --------
>  include/configs/MPC8568MDS.h     | 5 -----
>  include/configs/MPC8569MDS.h     | 5 -----
>  include/configs/MPC8572DS.h      | 5 -----
>  include/configs/MPC8610HPCD.h    | 2 --
>  include/configs/MPC8641HPCN.h    | 5 -----
>  include/configs/P1010RDB.h       | 5 -----
>  include/configs/P1022DS.h        | 5 -----
>  include/configs/P1023RDB.h       | 5 -----
>  include/configs/T102xQDS.h       | 5 -----
>  include/configs/T102xRDB.h       | 5 -----
>  include/configs/T1040QDS.h       | 5 -----
>  include/configs/T104xRDB.h       | 5 -----
>  include/configs/T208xQDS.h       | 5 -----
>  include/configs/T208xRDB.h       | 5 -----
>  include/configs/T4240RDB.h       | 2 --
>  include/configs/TQM834x.h        | 5 -----
>  include/configs/UCP1020.h        | 5 -----
>  include/configs/controlcenterd.h | 3 ---
>  include/configs/corenet_ds.h     | 5 -----
>  include/configs/cyrus.h          | 5 -----
>  include/configs/p1_p2_rdb_pc.h   | 5 -----
>  include/configs/p1_twr.h         | 5 -----
>  include/configs/qemu-ppce500.h   | 2 --
>  include/configs/sbc8548.h        | 5 -----
>  include/configs/sbc8641d.h       | 2 --
>  include/configs/smdkc100.h       | 3 ---
>  include/configs/socrates.h       | 1 -
>  include/configs/t4qds.h          | 2 --
>  include/configs/xpedite517x.h    | 5 -----
>  include/configs/xpedite520x.h    | 5 -----
>  include/configs/xpedite537x.h    | 5 -----
>  include/configs/xpedite550x.h    | 5 -----
>  scripts/config_whitelist.txt     | 1 -
>  48 files changed, 8 insertions(+), 196 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Philipp Tomsich Aug. 5, 2017, 9:54 a.m. UTC | #2
> From: Christophe Leroy <christophe.leroy@c-s.fr>
> 
> This patch converts CONFIG_CMD_REGINFO to Kconfig
> 
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> ---
> 
> Changes in v2:
> - Fixed lots of merge conflicts with my series
> - Pull in this patch from http://patchwork.ozlabs.org/patch/787724/ instead
> 
>  README                           | 1 -
>  arch/powerpc/Kconfig             | 3 +++
>  cmd/Kconfig                      | 5 +++++
>  include/config_cmd_all.h         | 1 -
>  include/configs/B4860QDS.h       | 5 -----
>  include/configs/BSC9131RDB.h     | 5 -----
>  include/configs/BSC9132QDS.h     | 5 -----
>  include/configs/C29XPCIE.h       | 5 -----
>  include/configs/MCR3000.h        | 3 ---
>  include/configs/MPC8536DS.h      | 5 -----
>  include/configs/MPC8541CDS.h     | 5 -----
>  include/configs/MPC8544DS.h      | 5 -----
>  include/configs/MPC8548CDS.h     | 5 -----
>  include/configs/MPC8555CDS.h     | 5 -----
>  include/configs/MPC8560ADS.h     | 8 --------
>  include/configs/MPC8568MDS.h     | 5 -----
>  include/configs/MPC8569MDS.h     | 5 -----
>  include/configs/MPC8572DS.h      | 5 -----
>  include/configs/MPC8610HPCD.h    | 2 --
>  include/configs/MPC8641HPCN.h    | 5 -----
>  include/configs/P1010RDB.h       | 5 -----
>  include/configs/P1022DS.h        | 5 -----
>  include/configs/P1023RDB.h       | 5 -----
>  include/configs/T102xQDS.h       | 5 -----
>  include/configs/T102xRDB.h       | 5 -----
>  include/configs/T1040QDS.h       | 5 -----
>  include/configs/T104xRDB.h       | 5 -----
>  include/configs/T208xQDS.h       | 5 -----
>  include/configs/T208xRDB.h       | 5 -----
>  include/configs/T4240RDB.h       | 2 --
>  include/configs/TQM834x.h        | 5 -----
>  include/configs/UCP1020.h        | 5 -----
>  include/configs/controlcenterd.h | 3 ---
>  include/configs/corenet_ds.h     | 5 -----
>  include/configs/cyrus.h          | 5 -----
>  include/configs/p1_p2_rdb_pc.h   | 5 -----
>  include/configs/p1_twr.h         | 5 -----
>  include/configs/qemu-ppce500.h   | 2 --
>  include/configs/sbc8548.h        | 5 -----
>  include/configs/sbc8641d.h       | 2 --
>  include/configs/smdkc100.h       | 3 ---
>  include/configs/socrates.h       | 1 -
>  include/configs/t4qds.h          | 2 --
>  include/configs/xpedite517x.h    | 5 -----
>  include/configs/xpedite520x.h    | 5 -----
>  include/configs/xpedite537x.h    | 5 -----
>  include/configs/xpedite550x.h    | 5 -----
>  scripts/config_whitelist.txt     | 1 -
>  48 files changed, 8 insertions(+), 196 deletions(-)
> 

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Tom Rini Aug. 12, 2017, 1:13 p.m. UTC | #3
On Fri, Aug 04, 2017 at 04:34:40PM -0600, Simon Glass wrote:

> From: Christophe Leroy <christophe.leroy@c-s.fr>
> 
> This patch converts CONFIG_CMD_REGINFO to Kconfig
> 
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

With a few more changes to the imply logic to not add this on boards
that didn't have it before, applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/README b/README
index 2e813b7bcb..9b64ef06f4 100644
--- a/README
+++ b/README
@@ -814,7 +814,6 @@  The following options need to be configured:
 		CONFIG_CMD_NFS		  NFS support
 		CONFIG_CMD_PING		* send ICMP ECHO_REQUEST to network
 					  host
-		CONFIG_CMD_REGINFO	* Register dump
 		CONFIG_CMD_RUN		  run command in env variable
 		CONFIG_CMD_SANDBOX	* sb command to access sandbox features
 		CONFIG_CMD_SAVES	* save S record dump
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 8094416e4a..c79b247651 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -23,15 +23,18 @@  config MPC85xx
 	imply USB_EHCI_HCD if USB
 	imply CMD_HASH
 	imply CMD_IRQ
+	imply CMD_REGINFO
 
 config MPC86xx
 	bool "MPC86xx"
 	select SYS_FSL_DDR
 	select SYS_FSL_DDR_BE
 	imply ENV_IS_IN_FLASH
+	imply CMD_REGINFO
 
 config 8xx
 	bool "MPC8xx"
+	imply CMD_REGINFO
 
 endchoice
 
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 15dcfbf1e9..070536ac23 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -158,6 +158,11 @@  config CMD_LICENSE
 	help
 	  Print GPL license text
 
+config CMD_REGINFO
+	bool "reginfo"
+	help
+	  Register dump
+
 endmenu
 
 menu "Boot commands"
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h
index edfc91ff9b..cb0ab6d61a 100644
--- a/include/config_cmd_all.h
+++ b/include/config_cmd_all.h
@@ -13,7 +13,6 @@ 
  * Alphabetical list of all possible commands.
  */
 
-#define CONFIG_CMD_REGINFO	/* Register dump		*/
 #define CONFIG_CMD_REISER	/* Reiserfs support		*/
 #define CONFIG_CMD_SANDBOX	/* sb command to access sandbox features */
 #define CONFIG_CMD_SAVES	/* save S record dump		*/
diff --git a/include/configs/B4860QDS.h b/include/configs/B4860QDS.h
index 984803d440..ce9be95e7e 100644
--- a/include/configs/B4860QDS.h
+++ b/include/configs/B4860QDS.h
@@ -690,11 +690,6 @@  unsigned long get_board_ddr_clk(void);
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
 * USB
 */
diff --git a/include/configs/BSC9131RDB.h b/include/configs/BSC9131RDB.h
index a7c97a3b79..38407af3c7 100644
--- a/include/configs/BSC9131RDB.h
+++ b/include/configs/BSC9131RDB.h
@@ -286,11 +286,6 @@  extern unsigned long get_sdram_size(void);
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE		/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/BSC9132QDS.h b/include/configs/BSC9132QDS.h
index b385cf4a97..8f2bccddb5 100644
--- a/include/configs/BSC9132QDS.h
+++ b/include/configs/BSC9132QDS.h
@@ -509,11 +509,6 @@  combinations. this should be removed later
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/C29XPCIE.h b/include/configs/C29XPCIE.h
index a00d3872e3..c88715f601 100644
--- a/include/configs/C29XPCIE.h
+++ b/include/configs/C29XPCIE.h
@@ -427,11 +427,6 @@ 
 #define CONFIG_LOADS_ECHO
 #define CONFIG_SYS_LOADS_BAUD_CHANGE
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/MCR3000.h b/include/configs/MCR3000.h
index 17090da796..aabbab6e05 100644
--- a/include/configs/MCR3000.h
+++ b/include/configs/MCR3000.h
@@ -151,7 +151,4 @@ 
 #define	BOOTFLAG_COLD			0x01
 #define BOOTFLAG_WARM			0x02
 
-/* Misc Settings */
-#define CONFIG_CMD_REGINFO
-
 #endif /* __CONFIG_H */
diff --git a/include/configs/MPC8536DS.h b/include/configs/MPC8536DS.h
index 277c9d00a7..11a7950e4d 100644
--- a/include/configs/MPC8536DS.h
+++ b/include/configs/MPC8536DS.h
@@ -580,11 +580,6 @@ 
 #define CONFIG_LOADS_ECHO	1	/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	1	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 #ifdef CONFIG_MMC
diff --git a/include/configs/MPC8541CDS.h b/include/configs/MPC8541CDS.h
index 3867b31e23..aa450fcaa4 100644
--- a/include/configs/MPC8541CDS.h
+++ b/include/configs/MPC8541CDS.h
@@ -338,11 +338,6 @@  extern unsigned long get_clock_freq(void);
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
diff --git a/include/configs/MPC8544DS.h b/include/configs/MPC8544DS.h
index cea37f8ae4..1c8e031a7e 100644
--- a/include/configs/MPC8544DS.h
+++ b/include/configs/MPC8544DS.h
@@ -344,11 +344,6 @@  extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * USB
  */
diff --git a/include/configs/MPC8548CDS.h b/include/configs/MPC8548CDS.h
index 7c98bcb035..58cd674a5f 100644
--- a/include/configs/MPC8548CDS.h
+++ b/include/configs/MPC8548CDS.h
@@ -457,11 +457,6 @@  extern unsigned long get_clock_freq(void);
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
diff --git a/include/configs/MPC8555CDS.h b/include/configs/MPC8555CDS.h
index 3dc24bd74e..b580c33070 100644
--- a/include/configs/MPC8555CDS.h
+++ b/include/configs/MPC8555CDS.h
@@ -336,11 +336,6 @@  extern unsigned long get_clock_freq(void);
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
diff --git a/include/configs/MPC8560ADS.h b/include/configs/MPC8560ADS.h
index 8b8be2da0e..672ae5007c 100644
--- a/include/configs/MPC8560ADS.h
+++ b/include/configs/MPC8560ADS.h
@@ -349,14 +349,6 @@ 
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
-#if defined(CONFIG_ETHER_ON_FCC)
-#endif
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
diff --git a/include/configs/MPC8568MDS.h b/include/configs/MPC8568MDS.h
index e6b1ea982f..29f3d09cfd 100644
--- a/include/configs/MPC8568MDS.h
+++ b/include/configs/MPC8568MDS.h
@@ -351,11 +351,6 @@  extern unsigned long get_clock_freq(void);
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
diff --git a/include/configs/MPC8569MDS.h b/include/configs/MPC8569MDS.h
index 6f2fa4939a..a0d48af908 100644
--- a/include/configs/MPC8569MDS.h
+++ b/include/configs/MPC8569MDS.h
@@ -443,11 +443,6 @@  extern unsigned long get_clock_freq(void);
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 #ifdef CONFIG_MMC
diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h
index a75d30851b..2d905e4732 100644
--- a/include/configs/MPC8572DS.h
+++ b/include/configs/MPC8572DS.h
@@ -542,11 +542,6 @@ 
 #define CONFIG_LOADS_ECHO	1	/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	1	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * USB
  */
diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h
index 807624e2ce..e13fff0375 100644
--- a/include/configs/MPC8610HPCD.h
+++ b/include/configs/MPC8610HPCD.h
@@ -262,8 +262,6 @@ 
 
 #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
 
-#define CONFIG_CMD_REGINFO
-
 #define CONFIG_ULI526X
 #ifdef CONFIG_ULI526X
 #endif
diff --git a/include/configs/MPC8641HPCN.h b/include/configs/MPC8641HPCN.h
index b74ef38513..607e8bd114 100644
--- a/include/configs/MPC8641HPCN.h
+++ b/include/configs/MPC8641HPCN.h
@@ -582,11 +582,6 @@  extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h
index 9f52a6fc48..a61c59f7fa 100644
--- a/include/configs/P1010RDB.h
+++ b/include/configs/P1010RDB.h
@@ -711,11 +711,6 @@  extern unsigned long get_sdram_size(void);
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 #if defined(CONFIG_MMC) || defined(CONFIG_USB_EHCI_HCD) \
diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h
index 152f0d89f0..fe7c677946 100644
--- a/include/configs/P1022DS.h
+++ b/include/configs/P1022DS.h
@@ -582,11 +582,6 @@ 
 #define CONFIG_LOADS_ECHO
 #define CONFIG_SYS_LOADS_BAUD_CHANGE
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * USB
  */
diff --git a/include/configs/P1023RDB.h b/include/configs/P1023RDB.h
index 45dcb6b04b..3522c32a72 100644
--- a/include/configs/P1023RDB.h
+++ b/include/configs/P1023RDB.h
@@ -236,11 +236,6 @@  extern unsigned long get_clock_freq(void);
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * USB
  */
diff --git a/include/configs/T102xQDS.h b/include/configs/T102xQDS.h
index 1adbf1ae90..e4f8e7d980 100644
--- a/include/configs/T102xQDS.h
+++ b/include/configs/T102xQDS.h
@@ -768,11 +768,6 @@  unsigned long get_board_ddr_clk(void);
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/T102xRDB.h b/include/configs/T102xRDB.h
index 7a33b8a19e..7c81dc428e 100644
--- a/include/configs/T102xRDB.h
+++ b/include/configs/T102xRDB.h
@@ -779,11 +779,6 @@  unsigned long get_board_ddr_clk(void);
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/T1040QDS.h b/include/configs/T1040QDS.h
index 0f0e149572..de60b21e35 100644
--- a/include/configs/T1040QDS.h
+++ b/include/configs/T1040QDS.h
@@ -647,11 +647,6 @@  unsigned long get_board_ddr_clk(void);
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/T104xRDB.h b/include/configs/T104xRDB.h
index 34578cc819..84bcecbb05 100644
--- a/include/configs/T104xRDB.h
+++ b/include/configs/T104xRDB.h
@@ -762,11 +762,6 @@  $(SRCTREE)/board/freescale/t104xrdb/t1042d4_sd_rcw.cfg
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/T208xQDS.h b/include/configs/T208xQDS.h
index b45e634ddb..28e4bb01fb 100644
--- a/include/configs/T208xQDS.h
+++ b/include/configs/T208xQDS.h
@@ -733,11 +733,6 @@  unsigned long get_board_ddr_clk(void);
 #define CONFIG_LOADS_ECHO	/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/T208xRDB.h b/include/configs/T208xRDB.h
index b5b7a4a8fb..a91d39e4eb 100644
--- a/include/configs/T208xRDB.h
+++ b/include/configs/T208xRDB.h
@@ -679,11 +679,6 @@  unsigned long get_board_ddr_clk(void);
  * Environment
  */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/T4240RDB.h b/include/configs/T4240RDB.h
index 1b56020c10..0717ae5a1e 100644
--- a/include/configs/T4240RDB.h
+++ b/include/configs/T4240RDB.h
@@ -56,8 +56,6 @@ 
 
 #define CONFIG_DDR_ECC
 
-#define CONFIG_CMD_REGINFO
-
 /* High Level Configuration Options */
 #define CONFIG_SYS_BOOK3E_HV		/* Category E.HV supported */
 #define CONFIG_MP			/* support multiple processors */
diff --git a/include/configs/TQM834x.h b/include/configs/TQM834x.h
index aab8b5d9f2..b9923c316b 100644
--- a/include/configs/TQM834x.h
+++ b/include/configs/TQM834x.h
@@ -213,11 +213,6 @@ 
 
 #endif	/* CONFIG_TSEC_ENET */
 
-/*
- * General PCI
- * Addresses are mapped 1-1.
- */
-
 #if defined(CONFIG_PCI)
 
 #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */
diff --git a/include/configs/UCP1020.h b/include/configs/UCP1020.h
index 6573301493..53d4bfa2f0 100644
--- a/include/configs/UCP1020.h
+++ b/include/configs/UCP1020.h
@@ -410,11 +410,6 @@ 
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * USB
  */
diff --git a/include/configs/controlcenterd.h b/include/configs/controlcenterd.h
index 55d705c2fc..3b0290ccc4 100644
--- a/include/configs/controlcenterd.h
+++ b/include/configs/controlcenterd.h
@@ -335,9 +335,6 @@ 
 #define CONFIG_SYS_BARGSIZE	CONFIG_SYS_CBSIZE
 
 #ifndef CONFIG_TRAILBLAZER
-
-#define CONFIG_CMD_REGINFO
-
 /*
  * Board initialisation callbacks
  */
diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h
index 19f3a55e9a..08c51e3434 100644
--- a/include/configs/corenet_ds.h
+++ b/include/configs/corenet_ds.h
@@ -580,11 +580,6 @@ 
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
 * USB
 */
diff --git a/include/configs/cyrus.h b/include/configs/cyrus.h
index 5ba393a7db..aaa7a619ca 100644
--- a/include/configs/cyrus.h
+++ b/include/configs/cyrus.h
@@ -406,11 +406,6 @@ 
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * USB
  */
diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb_pc.h
index d9829d6125..0a2c8611a1 100644
--- a/include/configs/p1_p2_rdb_pc.h
+++ b/include/configs/p1_p2_rdb_pc.h
@@ -798,11 +798,6 @@ 
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * USB
  */
diff --git a/include/configs/p1_twr.h b/include/configs/p1_twr.h
index 795d238b6d..a992763d05 100644
--- a/include/configs/p1_twr.h
+++ b/include/configs/p1_twr.h
@@ -374,11 +374,6 @@  extern unsigned long get_board_sys_clk(unsigned long dummy);
 #define CONFIG_LOADS_ECHO		/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	/* allow baudrate change */
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * USB
  */
diff --git a/include/configs/qemu-ppce500.h b/include/configs/qemu-ppce500.h
index 2c9a3466f7..e0cc873e06 100644
--- a/include/configs/qemu-ppce500.h
+++ b/include/configs/qemu-ppce500.h
@@ -10,8 +10,6 @@ 
 #ifndef __QEMU_PPCE500_H
 #define __QEMU_PPCE500_H
 
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_SYS_TEXT_BASE
 #define CONFIG_SYS_TEXT_BASE	0xf01000 /* 15 MB */
 
diff --git a/include/configs/sbc8548.h b/include/configs/sbc8548.h
index c2f533b0a1..28e53b1c2c 100644
--- a/include/configs/sbc8548.h
+++ b/include/configs/sbc8548.h
@@ -507,11 +507,6 @@ 
 #define CONFIG_BOOTP_GATEWAY
 #define CONFIG_BOOTP_HOSTNAME
 
-/*
- * Command line configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
diff --git a/include/configs/sbc8641d.h b/include/configs/sbc8641d.h
index de123fdd9c..dcce2ba193 100644
--- a/include/configs/sbc8641d.h
+++ b/include/configs/sbc8641d.h
@@ -450,8 +450,6 @@ 
 #define CONFIG_LOADS_ECHO	1	/* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE	1	/* allow baudrate change */
 
-#define CONFIG_CMD_REGINFO
-
 #undef CONFIG_WATCHDOG			/* watchdog disabled */
 
 /*
diff --git a/include/configs/smdkc100.h b/include/configs/smdkc100.h
index 58abac5eef..f5d541d20b 100644
--- a/include/configs/smdkc100.h
+++ b/include/configs/smdkc100.h
@@ -56,9 +56,6 @@ 
 /* allow to overwrite serial and ethaddr */
 #define CONFIG_ENV_OVERWRITE
 
-/***********************************************************
- * Command definition
- ***********************************************************/
 #define CONFIG_MTD_DEVICE
 #define CONFIG_MTD_PARTITIONS
 
diff --git a/include/configs/socrates.h b/include/configs/socrates.h
index b6ea44e3c0..cce7f901af 100644
--- a/include/configs/socrates.h
+++ b/include/configs/socrates.h
@@ -278,7 +278,6 @@ 
  * Command line configuration.
  */
 #define CONFIG_CMD_SDRAM
-#define CONFIG_CMD_REGINFO
 
 #undef CONFIG_WATCHDOG			/* watchdog disabled		*/
 
diff --git a/include/configs/t4qds.h b/include/configs/t4qds.h
index 23b6bf0361..ce138f843f 100644
--- a/include/configs/t4qds.h
+++ b/include/configs/t4qds.h
@@ -10,8 +10,6 @@ 
 #ifndef __T4QDS_H
 #define __T4QDS_H
 
-#define CONFIG_CMD_REGINFO
-
 /* High Level Configuration Options */
 #define CONFIG_SYS_BOOK3E_HV		/* Category E.HV supported */
 #define CONFIG_MP			/* support multiple processors */
diff --git a/include/configs/xpedite517x.h b/include/configs/xpedite517x.h
index 57fc16812e..3753871343 100644
--- a/include/configs/xpedite517x.h
+++ b/include/configs/xpedite517x.h
@@ -481,11 +481,6 @@  extern unsigned long get_board_sys_clk(unsigned long dummy);
 				 BATL_CACHEINHIBIT)
 #define CONFIG_SYS_IBAT7U	CONFIG_SYS_DBAT7U
 
-/*
- * Command configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/xpedite520x.h b/include/configs/xpedite520x.h
index 628de82767..7a37b5cf7e 100644
--- a/include/configs/xpedite520x.h
+++ b/include/configs/xpedite520x.h
@@ -284,11 +284,6 @@ 
 #define CONFIG_BOOTP_BOOTPATH
 #define CONFIG_BOOTP_GATEWAY
 
-/*
- * Command configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/xpedite537x.h b/include/configs/xpedite537x.h
index c599b22bc8..47affb5e74 100644
--- a/include/configs/xpedite537x.h
+++ b/include/configs/xpedite537x.h
@@ -334,11 +334,6 @@  extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define TSEC2_PHYIDX		0
 #define CONFIG_HAS_ETH1
 
-/*
- * Command configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/include/configs/xpedite550x.h b/include/configs/xpedite550x.h
index c387d951c1..60b9c00e26 100644
--- a/include/configs/xpedite550x.h
+++ b/include/configs/xpedite550x.h
@@ -333,11 +333,6 @@  extern unsigned long get_board_ddr_clk(unsigned long dummy);
 #define CONFIG_USB_EHCI_FSL
 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
 
-/*
- * Command configuration.
- */
-#define CONFIG_CMD_REGINFO
-
 /*
  * Miscellaneous configurable options
  */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 33a408891e..01087839ee 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -296,7 +296,6 @@  CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_REGINFO
 CONFIG_CMD_REISER
 CONFIG_CMD_SANDBOX
 CONFIG_CMD_SAVES