mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 06:24:17 +00:00
am43xx: Drop non-DM_I2C code
On this platform, we have DM_I2C and SPL_DM_I2C always enabled. Remove legacy options. Cc: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Tom Rini <trini@konsulko.com> Acked-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
bbd94278d1
commit
db157874fc
1 changed files with 0 additions and 27 deletions
|
@ -393,13 +393,8 @@ void scale_vcores_generic(u32 m)
|
||||||
{
|
{
|
||||||
int mpu_vdd, ddr_volt;
|
int mpu_vdd, ddr_volt;
|
||||||
|
|
||||||
#if !CONFIG_IS_ENABLED(DM_I2C)
|
|
||||||
if (i2c_probe(TPS65218_CHIP_PM))
|
|
||||||
return;
|
|
||||||
#else
|
|
||||||
if (power_tps65218_init(0))
|
if (power_tps65218_init(0))
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
|
|
||||||
switch (m) {
|
switch (m) {
|
||||||
case 1000:
|
case 1000:
|
||||||
|
@ -451,13 +446,8 @@ void scale_vcores_idk(u32 m)
|
||||||
{
|
{
|
||||||
int mpu_vdd;
|
int mpu_vdd;
|
||||||
|
|
||||||
#if !CONFIG_IS_ENABLED(DM_I2C)
|
|
||||||
if (i2c_probe(TPS62362_I2C_ADDR))
|
|
||||||
return;
|
|
||||||
#else
|
|
||||||
if (power_tps62362_init(0))
|
if (power_tps62362_init(0))
|
||||||
return;
|
return;
|
||||||
#endif
|
|
||||||
|
|
||||||
switch (m) {
|
switch (m) {
|
||||||
case 1000:
|
case 1000:
|
||||||
|
@ -492,10 +482,6 @@ void gpi2c_init(void)
|
||||||
|
|
||||||
if (first_time) {
|
if (first_time) {
|
||||||
enable_i2c0_pin_mux();
|
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;
|
first_time = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -632,28 +618,15 @@ void sdram_init(void)
|
||||||
int power_init_board(void)
|
int power_init_board(void)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
#if !CONFIG_IS_ENABLED(DM_I2C)
|
|
||||||
struct pmic *p = NULL;
|
|
||||||
#endif
|
|
||||||
if (board_is_idk()) {
|
if (board_is_idk()) {
|
||||||
rc = power_tps62362_init(0);
|
rc = power_tps62362_init(0);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto done;
|
goto done;
|
||||||
#if !CONFIG_IS_ENABLED(DM_I2C)
|
|
||||||
p = pmic_get("TPS62362");
|
|
||||||
if (!p || pmic_probe(p))
|
|
||||||
goto done;
|
|
||||||
#endif
|
|
||||||
puts("PMIC: TPS62362\n");
|
puts("PMIC: TPS62362\n");
|
||||||
} else {
|
} else {
|
||||||
rc = power_tps65218_init(0);
|
rc = power_tps65218_init(0);
|
||||||
if (rc)
|
if (rc)
|
||||||
goto done;
|
goto done;
|
||||||
#if !CONFIG_IS_ENABLED(DM_I2C)
|
|
||||||
p = pmic_get("TPS65218_PMIC");
|
|
||||||
if (!p || pmic_probe(p))
|
|
||||||
goto done;
|
|
||||||
#endif
|
|
||||||
puts("PMIC: TPS65218\n");
|
puts("PMIC: TPS65218\n");
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
|
|
Loading…
Add table
Reference in a new issue