diff options
author | Tom Rini <trini@konsulko.com> | 2021-08-19 06:12:35 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-08-30 21:10:07 +0300 |
commit | 6d5d0c955e2ca035481bc133d453fccd065b80e8 (patch) | |
tree | 74a4128f164f3dde64286dd295bf3cfcf41a1689 /board/keymile | |
parent | 6aa075432e4251782ae31f9336c8382b98a17153 (diff) | |
download | u-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 'board/keymile')
-rw-r--r-- | board/keymile/km83xx/km83xx_i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/keymile/km83xx/km83xx_i2c.c b/board/keymile/km83xx/km83xx_i2c.c index 62100b1949..b80672d1b4 100644 --- a/board/keymile/km83xx/km83xx_i2c.c +++ b/board/keymile/km83xx/km83xx_i2c.c @@ -15,7 +15,7 @@ static void i2c_write_start_seq(void) { struct fsl_i2c_base *base; base = (struct fsl_i2c_base *)(CONFIG_SYS_IMMR + - CONFIG_SYS_I2C_OFFSET); + CONFIG_SYS_FSL_I2C_OFFSET); udelay(DELAY_ABORT_SEQ); out_8(&base->cr, (I2C_CR_MEN | I2C_CR_MSTA)); udelay(DELAY_ABORT_SEQ); @@ -26,7 +26,7 @@ int i2c_make_abort(void) { struct fsl_i2c_base *base; base = (struct fsl_i2c_base *)(CONFIG_SYS_IMMR + - CONFIG_SYS_I2C_OFFSET); + CONFIG_SYS_FSL_I2C_OFFSET); uchar last; int nbr_read = 0; int i = 0; |