diff options
author | Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com> | 2022-05-04 11:02:58 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-09 13:40:24 -0400 |
commit | 655a93f0793663fc1aeadc2767119b89e0866864 (patch) | |
tree | 6d3dfe97be1d96c911e6cb78fc84b9c8e05cb48e /board/bosch/guardian/board.c | |
parent | 75878e9f133c71dc4d0ab2476497caaf1779c762 (diff) | |
download | u-boot-655a93f0793663fc1aeadc2767119b89e0866864.tar.gz u-boot-655a93f0793663fc1aeadc2767119b89e0866864.tar.bz2 u-boot-655a93f0793663fc1aeadc2767119b89e0866864.zip |
am335x, guardian: Drop non DM_I2C code
On this platform DM_I2C and SPL_DM_I2C enabled.
Remove legacy code.
Signed-off-by: Gireesh Hiremath <Gireesh.Hiremath@in.bosch.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/bosch/guardian/board.c')
-rw-r--r-- | board/bosch/guardian/board.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/bosch/guardian/board.c b/board/bosch/guardian/board.c index 68f2744610..7d1064a3fc 100644 --- a/board/bosch/guardian/board.c +++ b/board/bosch/guardian/board.c @@ -83,7 +83,8 @@ void am33xx_spl_board_init(void) /* Get the frequency */ dpll_mpu_opp100.m = am335x_get_efuse_mpu_max_freq(cdev); - if (i2c_probe(TPS65217_CHIP_PM)) + /* Initialize for Power Management */ + if (power_tps65217_init(0)) return; /* @@ -142,7 +143,6 @@ void am33xx_spl_board_init(void) const struct dpll_params *get_dpll_ddr_params(void) { enable_i2c0_pin_mux(); - i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); return &dpll_ddr; } @@ -335,6 +335,10 @@ int board_late_init(void) return ret; } + /* Initialize to enable backlight */ + if (power_tps65217_init(0)) + return 0; + lcdbacklight_en(); if (IS_ENABLED(CONFIG_AM335X_LCD)) splash_screen(); |