summaryrefslogtreecommitdiff
path: root/include/configs/T208xRDB.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-19 06:12:35 +0300
committerTom Rini <trini@konsulko.com>2021-08-30 21:10:07 +0300
commit6d5d0c955e2ca035481bc133d453fccd065b80e8 (patch)
tree74a4128f164f3dde64286dd295bf3cfcf41a1689 /include/configs/T208xRDB.h
parent6aa075432e4251782ae31f9336c8382b98a17153 (diff)
downloadu-boot-6d5d0c955e2ca035481bc133d453fccd065b80e8.tar.xz
i2c: fsl_i2c: Migrate to Kconfig
- As there are no boards that use different values for speed / slave on different buses, use a single option. - Switch to using the common SYS_I2C_SPEED / SYS_I2C_SLAVE options. - Introduce _HAS_ options for additional buses as only the first one is common to all users. - Convert all remaining symbols to Kconfig. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/configs/T208xRDB.h')
-rw-r--r--include/configs/T208xRDB.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/configs/T208xRDB.h b/include/configs/T208xRDB.h
index b31e4825e7..dcef441ac2 100644
--- a/include/configs/T208xRDB.h
+++ b/include/configs/T208xRDB.h
@@ -319,26 +319,11 @@ unsigned long get_board_ddr_clk(void);
/*
* I2C
*/
-#if !CONFIG_IS_ENABLED(DM_I2C)
-#define CONFIG_SYS_FSL_I2C_SLAVE 0x7F
-#define CONFIG_SYS_FSL_I2C2_SLAVE 0x7F
-#define CONFIG_SYS_FSL_I2C3_SLAVE 0x7F
-#define CONFIG_SYS_FSL_I2C4_SLAVE 0x7F
-#define CONFIG_SYS_FSL_I2C_OFFSET 0x118000
-#define CONFIG_SYS_FSL_I2C2_OFFSET 0x118100
-#define CONFIG_SYS_FSL_I2C3_OFFSET 0x119000
-#define CONFIG_SYS_FSL_I2C4_OFFSET 0x119100
-#define CONFIG_SYS_FSL_I2C_SPEED 100000
-#define CONFIG_SYS_FSL_I2C2_SPEED 100000
-#define CONFIG_SYS_FSL_I2C3_SPEED 100000
-#define CONFIG_SYS_FSL_I2C4_SPEED 100000
-#else
+#if CONFIG_IS_ENABLED(DM_I2C)
#define CONFIG_I2C_SET_DEFAULT_BUS_NUM
#define CONFIG_I2C_DEFAULT_BUS_NUMBER 0
#endif
-#define CONFIG_SYS_I2C_FSL
-
#define I2C_MUX_PCA_ADDR_PRI 0x77 /* I2C bus multiplexer,primary */
#define I2C_MUX_PCA_ADDR_SEC1 0x75 /* I2C bus multiplexer,secondary 1 */
#define I2C_MUX_PCA_ADDR_SEC2 0x76 /* I2C bus multiplexer,secondary 2 */