]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global: Migrate CONFIG_I2C_MVTWSI_BASE0 to CFG
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:04:09 +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_BASE0 to CFG_I2C_MVTWSI_BASE0

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/include/asm/arch-sunxi/i2c.h
arch/arm/mach-kirkwood/include/mach/config.h
drivers/i2c/mvtwsi.c
include/configs/db-88f6720.h
include/configs/db-88f6820-gp.h
include/configs/db-mv784mp-gp.h
include/configs/ds414.h
include/configs/maxbcm.h
include/configs/theadorable.h

index 241b44928a95a018d08a6dc08ba0cb4529cdf4c9..2c2d6b7d31d098d093663139800fb84c96266203 100644 (file)
@@ -8,7 +8,7 @@
 #include <asm/arch/cpu.h>
 
 #ifdef CONFIG_I2C0_ENABLE
-#define CONFIG_I2C_MVTWSI_BASE0        SUNXI_TWI0_BASE
+#define CFG_I2C_MVTWSI_BASE0   SUNXI_TWI0_BASE
 #endif
 #ifdef CONFIG_I2C1_ENABLE
 #define CONFIG_I2C_MVTWSI_BASE1        SUNXI_TWI1_BASE
index a6de7676294ba7a20a7d59f8640a135887aa88b0..fbef9c99b1d37aed45d7d3e96287b85d5406c2d2 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <asm/arch/soc.h>
 
-#define CONFIG_I2C_MVTWSI_BASE0        KW_TWSI_BASE
+#define CFG_I2C_MVTWSI_BASE0   KW_TWSI_BASE
 #define MV_UART_CONSOLE_BASE   KW_UART0_BASE
 #define MV_SATA_BASE           KW_SATA_BASE
 #define MV_SATA_PORT0_OFFSET   KW_SATA_PORT0_OFFSET
index a9c7d6e1bc260a3d3b4d4aa5256051a7e71f0b99..076525d6c4d5cc70ea6b77193ae0ffd713c02758 100644 (file)
@@ -197,9 +197,9 @@ inline uint calc_tick(uint speed)
 static struct mvtwsi_registers *twsi_get_base(struct i2c_adapter *adap)
 {
        switch (adap->hwadapnr) {
-#ifdef CONFIG_I2C_MVTWSI_BASE0
+#ifdef CFG_I2C_MVTWSI_BASE0
        case 0:
-               return (struct mvtwsi_registers *)CONFIG_I2C_MVTWSI_BASE0;
+               return (struct mvtwsi_registers *)CFG_I2C_MVTWSI_BASE0;
 #endif
 #ifdef CONFIG_I2C_MVTWSI_BASE1
        case 1:
@@ -737,7 +737,7 @@ static int twsi_i2c_write(struct i2c_adapter *adap, uchar chip, uint addr,
                                10000);
 }
 
-#ifdef CONFIG_I2C_MVTWSI_BASE0
+#ifdef CFG_I2C_MVTWSI_BASE0
 U_BOOT_I2C_ADAP_COMPLETE(twsi0, twsi_i2c_init, twsi_i2c_probe,
                         twsi_i2c_read, twsi_i2c_write,
                         twsi_i2c_set_bus_speed,
index ef9c457e1020782a9792a7a0a591fe763725d42b..54de2d0d8334bed1a4e23b010b2c460ace8ea364 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 /* I2C */
-#define CONFIG_I2C_MVTWSI_BASE0                MVEBU_TWSI_BASE
+#define CFG_I2C_MVTWSI_BASE0           MVEBU_TWSI_BASE
 
 /* USB/EHCI configuration */
 
index 6dbf582d733bb907b96acdd63381c1786289a3df..2cbe4eb440b4cedcd6e720eef8312cc99f55e943 100644 (file)
@@ -11,7 +11,7 @@
  */
 
 /* I2C */
-#define CONFIG_I2C_MVTWSI_BASE0                MVEBU_TWSI_BASE
+#define CFG_I2C_MVTWSI_BASE0           MVEBU_TWSI_BASE
 
 /* Environment in SPI NOR flash */
 
index bf8b35102ad79a9fe7eb6e07b9b5d10d52fd1575..5c6d7fa1b7766aef633242081d0da1022b5712f9 100644 (file)
@@ -13,7 +13,7 @@
  */
 
 /* I2C */
-#define CONFIG_I2C_MVTWSI_BASE0                MVEBU_TWSI_BASE
+#define CFG_I2C_MVTWSI_BASE0           MVEBU_TWSI_BASE
 
 /* USB/EHCI configuration */
 
index e69883ba73bcac0526f6f0e91fd465dfc28896b6..9446acba7923fa8f47ccd9737ab60c1fb5f86c3e 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 /* I2C */
-#define CONFIG_I2C_MVTWSI_BASE0                MVEBU_TWSI_BASE
+#define CFG_I2C_MVTWSI_BASE0           MVEBU_TWSI_BASE
 
 /*
  * mv-common.h should be defined after CMD configs since it used them
index 5ad945b558968724d3cd0f51a92b77b859fd5a2d..413597e09b261ce541cdf73fe90c31238e077b65 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 /* I2C */
-#define CONFIG_I2C_MVTWSI_BASE0                MVEBU_TWSI_BASE
+#define CFG_I2C_MVTWSI_BASE0           MVEBU_TWSI_BASE
 
 /* SPI NOR flash default params, used by sf commands */
 
index 9722b0db72aad8a8f385e2dc363bd42870e92536..412698d3fe922d0221f87a65e849784eb9576dd1 100644 (file)
@@ -25,7 +25,7 @@
  */
 
 /* I2C */
-#define CONFIG_I2C_MVTWSI_BASE0                MVEBU_TWSI_BASE
+#define CFG_I2C_MVTWSI_BASE0           MVEBU_TWSI_BASE
 #define CONFIG_I2C_MVTWSI_BASE1                MVEBU_TWSI1_BASE
 
 /* USB/EHCI configuration */