[U-Boot] [PATCH v3 38/48] Convert CONFIG_CMD_IO to Kconfig

Simon Glass sjg at chromium.org
Wed May 17 09:25:34 UTC 2017


This converts the following to Kconfig:
   CONFIG_CMD_IO

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v3: None
Changes in v2: None

 README                       | 1 -
 arch/Kconfig                 | 2 ++
 cmd/Kconfig                  | 8 ++++++++
 include/config_cmd_all.h     | 1 -
 include/configs/sandbox.h    | 1 -
 include/configs/x86-common.h | 1 -
 scripts/config_whitelist.txt | 1 -
 7 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/README b/README
index 5f3ccbe112..f0020fbf33 100644
--- a/README
+++ b/README
@@ -850,7 +850,6 @@ The following options need to be configured:
 		CONFIG_CMD_IMI		  iminfo
 		CONFIG_CMD_IMLS		  List all images found in NOR flash
 		CONFIG_CMD_IMLS_NAND	* List all images found in NAND flash
-		CONFIG_CMD_IOTRACE	* I/O tracing for debugging
 		CONFIG_CMD_IMPORTENV	* import an environment
 		CONFIG_CMD_INI		* import data from an ini file into the env
 		CONFIG_CMD_IRQ		* irqinfo
diff --git a/arch/Kconfig b/arch/Kconfig
index 61c08fffa4..c10f0a9b71 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -69,6 +69,7 @@ config SANDBOX
 	select DM_GPIO
 	select DM_MMC
 	imply CMD_HASH
+	imply CMD_IO
 
 config SH
 	bool "SuperH architecture"
@@ -88,6 +89,7 @@ config X86
 	select USB_EHCI_HCD
 	imply CMD_FPGA_LOADMK
 	imply CMD_GETTIME
+	imply CMD_IO
 
 config XTENSA
 	bool "Xtensa architecture"
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 1268e38b59..0f54ae35f9 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -493,6 +493,14 @@ config CMD_IDE
 	  geting device info. It also enables the 'diskboot' command which
 	  permits booting from an IDE drive.
 
+config CMD_IO
+	bool "io - Support for performing I/O accesses"
+	help
+	  Provides an 'iod' command to display I/O space and an 'iow' command
+	  to write values to the I/O space. This can be useful for manually
+	  checking the state of devices during boot when debugging device
+	  drivers, etc.
+
 config CMD_LOADB
 	bool "loadb"
 	default y
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h
index 8ab46ca47e..27fcc5e28d 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_IO		/* Access to X86 IO space	*/
 #define CONFIG_CMD_IRQ		/* irqinfo			*/
 #define CONFIG_CMD_JFFS2	/* JFFS2 Support		*/
 #define CONFIG_CMD_KGDB		/* kgdb				*/
diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h
index dccfaf6a0d..8973494f9b 100644
--- a/include/configs/sandbox.h
+++ b/include/configs/sandbox.h
@@ -29,7 +29,6 @@
 #define CONFIG_ANDROID_BOOT_IMAGE
 
 #define CONFIG_CMD_PCI
-#define CONFIG_CMD_IO
 
 #define CONFIG_FS_FAT
 #define CONFIG_FAT_WRITE
diff --git a/include/configs/x86-common.h b/include/configs/x86-common.h
index e9d5f3d053..d8b3f1ad67 100644
--- a/include/configs/x86-common.h
+++ b/include/configs/x86-common.h
@@ -70,7 +70,6 @@
 /*-----------------------------------------------------------------------
  * Command line configuration.
  */
-#define CONFIG_CMD_IO
 #define CONFIG_CMD_IRQ
 #define CONFIG_CMD_PCI
 #define CONFIG_SCSI
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index cdb10f9964..5240cfe6c5 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -383,7 +383,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_IO
 CONFIG_CMD_IOLOOP
 CONFIG_CMD_IOTRACE
 CONFIG_CMD_IRQ
-- 
2.13.0.303.g4ebf302169-goog



More information about the U-Boot mailing list