]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global: Migrate CONFIG_I2C_MVTWSI_BASE1 to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:04:10 +0000 (10:04 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:10:40 +0000 (10:10 -0500)
Perform a simple rename of CONFIG_I2C_MVTWSI_BASE1 to CFG_I2C_MVTWSI_BASE1

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/include/asm/arch-sunxi/i2c.h
drivers/i2c/mvtwsi.c
include/configs/theadorable.h

index 2c2d6b7d31d098d093663139800fb84c96266203..e3dcfdf37082429c941c91e67a412f615f003521 100644 (file)
@@ -11,7 +11,7 @@
 #define CFG_I2C_MVTWSI_BASE0   SUNXI_TWI0_BASE
 #endif
 #ifdef CONFIG_I2C1_ENABLE
-#define CONFIG_I2C_MVTWSI_BASE1        SUNXI_TWI1_BASE
+#define CFG_I2C_MVTWSI_BASE1   SUNXI_TWI1_BASE
 #endif
 #ifdef CONFIG_R_I2C_ENABLE
 #define CONFIG_I2C_MVTWSI_BASE2 SUNXI_R_TWI_BASE
index 076525d6c4d5cc70ea6b77193ae0ffd713c02758..2822749971aff61ec37e7b943a0df7f952bd243e 100644 (file)
@@ -201,9 +201,9 @@ static struct mvtwsi_registers *twsi_get_base(struct i2c_adapter *adap)
        case 0:
                return (struct mvtwsi_registers *)CFG_I2C_MVTWSI_BASE0;
 #endif
-#ifdef CONFIG_I2C_MVTWSI_BASE1
+#ifdef CFG_I2C_MVTWSI_BASE1
        case 1:
-               return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE1;
+               return (struct mvtwsi_registers *)CFG_I2C_MVTWSI_BASE1;
 #endif
 #ifdef CONFIG_I2C_MVTWSI_BASE2
        case 2:
@@ -743,7 +743,7 @@ U_BOOT_I2C_ADAP_COMPLETE(twsi0, twsi_i2c_init, twsi_i2c_probe,
                         twsi_i2c_set_bus_speed,
                         CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE, 0)
 #endif
-#ifdef CONFIG_I2C_MVTWSI_BASE1
+#ifdef CFG_I2C_MVTWSI_BASE1
 U_BOOT_I2C_ADAP_COMPLETE(twsi1, twsi_i2c_init, twsi_i2c_probe,
                         twsi_i2c_read, twsi_i2c_write,
                         twsi_i2c_set_bus_speed,
index 412698d3fe922d0221f87a65e849784eb9576dd1..2ce92845f1c01b1e12aef22525d53b4a51a217c0 100644 (file)
@@ -26,7 +26,7 @@
 
 /* I2C */
 #define CFG_I2C_MVTWSI_BASE0           MVEBU_TWSI_BASE
-#define CONFIG_I2C_MVTWSI_BASE1                MVEBU_TWSI1_BASE
+#define CFG_I2C_MVTWSI_BASE1           MVEBU_TWSI1_BASE
 
 /* USB/EHCI configuration */