[PoC 230/241] global: Migrate CONFIG_USB_ISP1301_I2C_ADDR to CFG

Tom Rini trini at konsulko.com
Sun Nov 20 15:17:32 CET 2022


Signed-off-by: Tom Rini <trini at konsulko.com>
---
 drivers/usb/host/ohci-lpc32xx.c | 2 +-
 include/configs/devkit3250.h    | 2 +-
 scripts/config_whitelist.txt    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/ohci-lpc32xx.c b/drivers/usb/host/ohci-lpc32xx.c
index 3be0b311a36e..a04b2961b961 100644
--- a/drivers/usb/host/ohci-lpc32xx.c
+++ b/drivers/usb/host/ohci-lpc32xx.c
@@ -69,7 +69,7 @@ struct otg_regs {
 #define OTG1_DM_PULLDOWN		(1 << 3)
 #define OTG1_VBUS_DRV			(1 << 5)
 
-#define ISP1301_I2C_ADDR		CONFIG_USB_ISP1301_I2C_ADDR
+#define ISP1301_I2C_ADDR		CFG_USB_ISP1301_I2C_ADDR
 
 #define ISP1301_I2C_MODE_CONTROL_1_SET		0x04
 #define ISP1301_I2C_MODE_CONTROL_1_CLR		0x05
diff --git a/include/configs/devkit3250.h b/include/configs/devkit3250.h
index 9cfee381d4ac..d85aeaafe519 100644
--- a/include/configs/devkit3250.h
+++ b/include/configs/devkit3250.h
@@ -53,7 +53,7 @@
 /*
  * USB
  */
-#define CONFIG_USB_ISP1301_I2C_ADDR		0x2d
+#define CFG_USB_ISP1301_I2C_ADDR		0x2d
 
 /*
  * U-Boot General Configurations
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 21ab949e0d20..ea722d3e2798 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -244,7 +244,7 @@ CFG_USBD_HS
 CFG_USB_BOOTING
 CFG_USB_EXT2_BOOT
 CFG_USB_FAT_BOOT
-CONFIG_USB_ISP1301_I2C_ADDR
+CFG_USB_ISP1301_I2C_ADDR
 CONFIG_U_BOOT_HDR_SIZE
 CONFIG_VAR_SIZE_SPL
 CONFIG_VERY_BIG_RAM
-- 
2.25.1



More information about the U-Boot mailing list