[U-Boot] [PATCH 29/41] Convert CONFIG_CMD_TCA642X to Kconfig
Simon Glass
sjg at chromium.org
Fri Jul 21 23:11:28 UTC 2017
This converts the following to Kconfig:
CONFIG_CMD_TCA642X
Signed-off-by: Simon Glass <sjg at chromium.org>
---
configs/omap5_uevm_defconfig | 1 +
drivers/gpio/Kconfig | 9 +++++++++
include/configs/omap5_uevm.h | 1 -
scripts/config_whitelist.txt | 1 -
4 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/configs/omap5_uevm_defconfig b/configs/omap5_uevm_defconfig
index 338324d1f9..0dc7994535 100644
--- a/configs/omap5_uevm_defconfig
+++ b/configs/omap5_uevm_defconfig
@@ -37,6 +37,7 @@ CONFIG_ISO_PARTITION=y
CONFIG_SCSI=y
CONFIG_DFU_MMC=y
CONFIG_DFU_RAM=y
+CONFIG_CMD_TCA642X=y
CONFIG_MMC_OMAP_HS=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 2fffd4dc3d..4deb6cdf59 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -159,6 +159,15 @@ config SANDBOX_GPIO_COUNT
of 'anonymous' GPIOs that do not belong to any device or bank.
Select a suitable value depending on your needs.
+config CMD_TCA642X
+ bool "tca642x - Command to access tca642x state"
+ help
+ DEPRECATED - This needs conversion to driver model
+
+ This provides a way to looking at the pin state of this device.
+ This mirrors the 'gpio' command and that should be used in preference
+ to custom code.
+
config TEGRA_GPIO
bool "Tegra20..210 GPIO driver"
depends on DM_GPIO
diff --git a/include/configs/omap5_uevm.h b/include/configs/omap5_uevm.h
index 15d06bbe45..b8332c362d 100644
--- a/include/configs/omap5_uevm.h
+++ b/include/configs/omap5_uevm.h
@@ -47,7 +47,6 @@
/* Required support for the TCA642X GPIO we have on the uEVM */
#define CONFIG_TCA642X
-#define CONFIG_CMD_TCA642X
#define CONFIG_SYS_I2C_TCA642X_BUS_NUM 4
#define CONFIG_SYS_I2C_TCA642X_ADDR 0x22
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 632b2e3f5d..94d845e81b 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_TCA642X
CONFIG_CMD_TERMINAL
CONFIG_CMD_TFTP
CONFIG_CMD_THOR_DOWNLOAD
--
2.14.0.rc0.284.gd933b75aa4-goog
More information about the U-Boot
mailing list