aboutsummaryrefslogtreecommitdiff
path: root/board/ti/am335x/board.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-08-18 23:12:27 -0400
committerTom Rini <trini@konsulko.com>2021-08-30 14:10:07 -0400
commitbbd94278d15eee93e271c633e15a3b57595563ac (patch)
tree5023dc675ca44f030f4ecf4dfdec4f0d02789111 /board/ti/am335x/board.c
parent27bedff99d80b261e018509d79169f5ddb0efb77 (diff)
downloadu-boot-bbd94278d15eee93e271c633e15a3b57595563ac.zip
u-boot-bbd94278d15eee93e271c633e15a3b57595563ac.tar.gz
u-boot-bbd94278d15eee93e271c633e15a3b57595563ac.tar.bz2
am335x: Drop non-DM_I2C code
On this platform, we have DM_I2C and SPL_DM_I2C always enabled. Remove legacy options. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/ti/am335x/board.c')
-rw-r--r--board/ti/am335x/board.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 2e4f3d1..0e209a5 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -79,10 +79,6 @@ void do_board_detect(void)
{
enable_i2c0_pin_mux();
enable_i2c2_pin_mux();
-#if !CONFIG_IS_ENABLED(DM_I2C)
- i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, CONFIG_SYS_OMAP24_I2C_SLAVE);
- i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED2, CONFIG_SYS_OMAP24_I2C_SLAVE2);
-#endif
if (ti_i2c_eeprom_am_get(CONFIG_EEPROM_BUS_ADDRESS,
CONFIG_EEPROM_CHIP_ADDRESS))
printf("ti_i2c_eeprom_init failed\n");
@@ -339,13 +335,8 @@ static void scale_vcores_bone(int freq)
if (board_is_bone() && !strncmp(board_ti_get_rev(), "00A1", 4))
return;
-#if !CONFIG_IS_ENABLED(DM_I2C)
- if (i2c_probe(TPS65217_CHIP_PM))
- return;
-#else
if (power_tps65217_init(0))
return;
-#endif
/*
@@ -438,13 +429,8 @@ void scale_vcores_generic(int freq)
* 1.10V. For MPU voltage we need to switch based on
* the frequency we are running at.
*/
-#if !CONFIG_IS_ENABLED(DM_I2C)
- if (i2c_probe(TPS65910_CTRL_I2C_ADDR))
- return;
-#else
if (power_tps65910_init(0))
return;
-#endif
/*
* Depending on MPU clock and PG we will need a different
* VDD to drive at that speed.
@@ -472,10 +458,6 @@ void gpi2c_init(void)
if (first_time) {
enable_i2c0_pin_mux();
-#if !CONFIG_IS_ENABLED(DM_I2C)
- i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED,
- CONFIG_SYS_OMAP24_I2C_SLAVE);
-#endif
first_time = false;
}
}