Convert CONFIG_CMD_PCA953X to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 4 Aug 2017 22:34:32 +0000 (16:34 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Aug 2017 19:41:50 +0000 (15:41 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_PCA953X

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>
26 files changed:
README
arch/powerpc/cpu/mpc83xx/Kconfig
configs/cl-som-am57x_defconfig
configs/cm_t335_defconfig
configs/ot1200_defconfig
configs/ot1200_spl_defconfig
configs/snapper9260_defconfig
configs/snapper9g20_defconfig
configs/xilinx_zynqmp_zcu102_revA_defconfig
configs/xilinx_zynqmp_zcu102_revB_defconfig
configs/xpedite517x_defconfig
configs/xpedite520x_defconfig
configs/xpedite537x_defconfig
configs/xpedite550x_defconfig
drivers/gpio/Kconfig
include/configs/cl-som-am57x.h
include/configs/cm_t335.h
include/configs/ot1200.h
include/configs/snapper9260.h
include/configs/strider.h
include/configs/xilinx_zynqmp_zcu102.h
include/configs/xpedite517x.h
include/configs/xpedite520x.h
include/configs/xpedite537x.h
include/configs/xpedite550x.h
scripts/config_whitelist.txt

diff --git a/README b/README
index 8d5ff6ebbd60edc41796f7a4665b3c8efc99a1bf..d7efbdeedad506c4014d2a712cb424328dfea27f 100644 (file)
--- a/README
+++ b/README
@@ -812,7 +812,6 @@ The following options need to be configured:
                CONFIG_CMD_MII          * MII utility commands
                CONFIG_CMD_NET            bootp, tftpboot, rarpboot
                CONFIG_CMD_NFS            NFS support
-               CONFIG_CMD_PCA953X      * PCA953x I2C gpio commands
                CONFIG_CMD_PCA953X_INFO * PCA953x I2C gpio info command
                CONFIG_CMD_PCI          * pciinfo
                CONFIG_CMD_PCMCIA               * PCMCIA support
index b5b26f9b3af277dafb876f2668d8b44b7eaeee07..c66d6616a4264c473ad95fd3173438ee2e1b68d9 100644 (file)
@@ -96,6 +96,7 @@ config TARGET_STRIDER
        bool "Support strider"
        select SYS_FSL_ERRATUM_ESDHC111
        imply ENV_IS_IN_FLASH
+       imply CMD_PCA953X
 
 endchoice
 
index 415bc382cbab9760016f57b9eb18ba517cfb1a97..4371fd7b230364b270e151944b83cc928ad33ea1 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_ISO_PARTITION=y
+CONFIG_CMD_PCA953X=y
 CONFIG_LED_STATUS=y
 CONFIG_LED_STATUS_GPIO=y
 CONFIG_LED_STATUS0=y
index a88b2d81d5ab031e67974f552df67164446c9446..1be7b36cd3f419f2b8cb0c5201b5fdd1e4146b4e 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_CMD_FS_GENERIC=y
 CONFIG_CMD_MTDPARTS=y
 CONFIG_ISO_PARTITION=y
 CONFIG_EFI_PARTITION=y
+CONFIG_CMD_PCA953X=y
 CONFIG_LED_STATUS=y
 CONFIG_LED_STATUS_GPIO=y
 CONFIG_LED_STATUS0=y
index 8d40e521200c311333f93f5d24c8b78ecc3c4777..86e9fe5af6a04f14d2df72ce04c2f9d3f5c39ad7 100644 (file)
@@ -25,6 +25,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_DM=y
+CONFIG_CMD_PCA953X=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_STMICRO=y
index 34331ca372cabbdb4cde2e929e31399a1b109891..712dcdecc9e7ba729aaff09218df04a76d4ddef5 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_DM=y
+CONFIG_CMD_PCA953X=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_STMICRO=y
index 0c78b4717f54fc9e3c59a593d8fb7edb98db0715..2e86f954c8ed272f58e797dabd742191526aa653 100644 (file)
@@ -24,6 +24,7 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_FAT=y
+CONFIG_CMD_PCA953X=y
 # CONFIG_MMC is not set
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index f524a66fa3e92d182d653ce11c4e5510275e0cdc..e2b58419f21a81815e8f20c3889a7104a6d45d54 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
 CONFIG_CMD_FAT=y
+CONFIG_CMD_PCA953X=y
 # CONFIG_MMC is not set
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index e17a3a1161fd11e814062794f4a4d240089c6aac..c52b583c0fca1285c2ecb803d1edc8468eb909cc 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_DFU_RAM=y
 CONFIG_FPGA_XILINX=y
 CONFIG_FPGA_ZYNQMPPL=y
 CONFIG_DM_GPIO=y
+CONFIG_CMD_PCA953X=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
index 6de052b9ab07235366c3b1634a19d0c1269ef8d8..7ed01165089f1a1978cbc5ab81b487233067ed71 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_DFU_RAM=y
 CONFIG_FPGA_XILINX=y
 CONFIG_FPGA_ZYNQMPPL=y
 CONFIG_DM_GPIO=y
+CONFIG_CMD_PCA953X=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_ZYNQ=y
index 7b1f2b5f1436a07f783bab0750b4c7b37f8a21e3..f7f8fd94470f89d1dea1b30407b31fa762d15cb3 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_CMD_SNTP=y
 CONFIG_CMD_DATE=y
 CONFIG_CMD_JFFS2=y
 CONFIG_CMD_IRQ=y
+CONFIG_CMD_PCA953X=y
 CONFIG_DS4510=y
 # CONFIG_MMC is not set
 CONFIG_MTD_NOR_FLASH=y
index 003a8e996f5bb7aaa9ec3cb2509977cecc2c2c65..339f3f15517b67b2233300b8e912b047fc617b11 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_CMD_DATE=y
 # CONFIG_CMD_HASH is not set
 CONFIG_CMD_JFFS2=y
 # CONFIG_CMD_IRQ is not set
+CONFIG_CMD_PCA953X=y
 # CONFIG_MMC is not set
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_PHYLIB=y
index 9d17e005a96482bed37e4732ca4637b31e19c044..18809e3eb81872b022e89fc91ac933c4412afd2e 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_CMD_DATE=y
 CONFIG_CMD_JFFS2=y
 # CONFIG_CMD_IRQ is not set
 CONFIG_SYS_FSL_DDR2=y
+CONFIG_CMD_PCA953X=y
 CONFIG_DS4510=y
 # CONFIG_MMC is not set
 CONFIG_MTD_NOR_FLASH=y
index af56226abece304e16f80a9fe0153c089b7a2434..98e71245a7e619ca07acfe3b59ae17596016cf80 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_CMD_DATE=y
 # CONFIG_CMD_HASH is not set
 CONFIG_CMD_JFFS2=y
 # CONFIG_CMD_IRQ is not set
+CONFIG_CMD_PCA953X=y
 # CONFIG_MMC is not set
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_PHYLIB=y
index 63951e0dbead9e444e7310d55b0baf8b95014640..d2e7c29e1d6a2f077587fa2b1567ddcb47b3b8c8 100644 (file)
@@ -109,6 +109,15 @@ config OMAP_GPIO
          Support GPIO controllers on the TI OMAP3/4/5 and related (such as
          AM335x/AM43xx/AM57xx/DRA7xx/etc) families of SoCs.
 
+config CMD_PCA953X
+       bool "Enable the pca953x command"
+       help
+         Deprecated: This should be converted to driver model.
+
+         This command provides access to a pca953x GPIO device using the
+         legacy GPIO interface. Several subcommands are provided which mirror
+         the standard 'gpio' command. It should use that instead.
+
 config PM8916_GPIO
        bool "Qualcomm PM8916 PMIC GPIO/keypad driver"
        depends on DM_GPIO && PMIC_PM8916
index 4010354edf1ffd94d238bd42c92fde1d80d269f8..00d2b8fa8a51b333a0e284d3a5a8e5a2f2ce3f4e 100644 (file)
@@ -74,7 +74,6 @@
                                                CONFIG_SYS_SCSI_MAX_LUN)
 /* PCA9555 GPIO expander support */
 #define CONFIG_PCA953X
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 #define CONFIG_SYS_I2C_PCA953X_ADDR     0x20
 #define CONFIG_SYS_I2C_PCA953X_WIDTH    { {0x20, 16} }
index 6bcc63ab0cc69bb23c628cc92d0f8045e4804471..960b37760884564d773884bd34262f99513c62d8 100644 (file)
  * First select the I2C0 bus with "i2c dev 0", then use "pca953x" command.
  */
 #define CONFIG_PCA953X
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 #define CONFIG_SYS_I2C_PCA953X_ADDR    0x26
 #define CONFIG_SYS_I2C_PCA953X_WIDTH   { {0x26, 16} }
index 8ca6f62850327c23e003ee3f945e986bf36dde29..0214a1df5997176d1e6ceda7067740497099a9c0 100644 (file)
@@ -31,7 +31,6 @@
 #define CONFIG_PCA953X
 #define CONFIG_SYS_I2C_PCA953X_ADDR    0x20
 #define CONFIG_SYS_I2C_PCA953X_WIDTH   { {0x20, 16} }
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 
 /* I2C Configs */
index 5ec8c1b6954570fc39e9d842a92f27d116c4f833..8ff0fa34129b1b9c98f970cc4f4c05772707d0c3 100644 (file)
 #define CONFIG_SYS_MALLOC_LEN          (1 << 20)
 
 /* Command line configuration */
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 
 #endif /* __CONFIG_H */
index a702ec71dae5889f9e078f27e24ec9ea54b85fdc..507a41462b5367276010e3cff4f5f34815687f10 100644 (file)
 #define CONFIG_SYS_FSL_I2C_OFFSET      0x3000
 
 #define CONFIG_PCA953X                 /* NXP PCA9554 */
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 #define CONFIG_SYS_I2C_PCA953X_WIDTH    { {0x24, 16}, {0x25, 16}, {0x26, 16}, \
                                          {0x3c, 8}, {0x3d, 8}, {0x3e, 8} }
index 4194b66c6648bed71af6df91910af5e099e3727a..52278f188580c875bca82926b22a53f4fcb476e4 100644 (file)
@@ -38,7 +38,6 @@
 
 #define CONFIG_SYS_I2C_ZYNQ
 #define CONFIG_PCA953X
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 
 #define CONFIG_ZYNQMP_XHCI_LIST {ZYNQMP_USB0_XHCI_BASEADDR}
index 478ca50a89423d88b3dfde6526913ac0bf52d18f..c8695f1c78c40da8d88e3efd526daaf4dfb4611f 100644 (file)
@@ -483,7 +483,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
 /*
  * Command configuration.
  */
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 #define CONFIG_CMD_PCI
 #define CONFIG_CMD_PCI_ENUM
index f54971ee286b7258587584c96a227b5fe1e93207..0f7906f37c4adc89125452d6c16de2609187170e 100644 (file)
 /*
  * Command configuration.
  */
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 #define CONFIG_CMD_PCI
 #define CONFIG_CMD_PCI_ENUM
index c32b63d171ec73710f0416eec74696cd54818c4e..6984bfcd6ae2b5bc565f5ebd53f69cad89c02b5e 100644 (file)
@@ -336,7 +336,6 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 /*
  * Command configuration.
  */
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 #define CONFIG_CMD_PCI
 #define CONFIG_CMD_PCI_ENUM
index 7b0a0c6793bf7ce196509033e0879e668f116a57..48a8048e68669cc6cc05b8797fa71004d6a14ab5 100644 (file)
@@ -335,7 +335,6 @@ extern unsigned long get_board_ddr_clk(unsigned long dummy);
 /*
  * Command configuration.
  */
-#define CONFIG_CMD_PCA953X
 #define CONFIG_CMD_PCA953X_INFO
 #define CONFIG_CMD_PCI
 #define CONFIG_CMD_PCI_ENUM
index b2c0fefae4f5551d30ae60c08eaedc85506efc34..af2ed0b7921aaf5f0301c214f15b3eefa207a4d3 100644 (file)
@@ -293,7 +293,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_PCA953X
 CONFIG_CMD_PCA953X_INFO
 CONFIG_CMD_PCI
 CONFIG_CMD_PCI_ENUM