mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-01 12:01:31 +00:00
board/BuR/brppt1: drop DM_I2C_COMPAT
The TPS62517 PMIC driver has been partially converted to DM, so the legacy I2C access layer isn't needed anymore. Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
This commit is contained in:
parent
351a4aa050
commit
a9484aa769
7 changed files with 8 additions and 11 deletions
|
@ -106,9 +106,8 @@ void am33xx_spl_board_init(void)
|
||||||
|
|
||||||
/* setup I2C */
|
/* setup I2C */
|
||||||
enable_i2c_pin_mux();
|
enable_i2c_pin_mux();
|
||||||
i2c_set_bus_num(0);
|
|
||||||
i2c_init(CONFIG_SYS_OMAP24_I2C_SPEED, CONFIG_SYS_OMAP24_I2C_SLAVE);
|
pmicsetup(0, 0);
|
||||||
pmicsetup(0);
|
|
||||||
|
|
||||||
/* peripheral reset */
|
/* peripheral reset */
|
||||||
rc = gpio_request(64 + 29, "GPMC_WAIT1");
|
rc = gpio_request(64 + 29, "GPMC_WAIT1");
|
||||||
|
|
|
@ -132,7 +132,7 @@ void am33xx_spl_board_init(void)
|
||||||
puts("ERROR: i2c_set_bus_speed failed! (turn on PWR_nEN)\n");
|
puts("ERROR: i2c_set_bus_speed failed! (turn on PWR_nEN)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
pmicsetup(0);
|
pmicsetup(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct dpll_params *get_dpll_ddr_params(void)
|
const struct dpll_params *get_dpll_ddr_params(void)
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
int load_lcdtiming(struct am335x_lcdpanel *panel);
|
int load_lcdtiming(struct am335x_lcdpanel *panel);
|
||||||
void br_summaryscreen(void);
|
void br_summaryscreen(void);
|
||||||
void pmicsetup(u32 mpupll);
|
void pmicsetup(u32 mpupll, unsigned int bus);
|
||||||
void enable_uart0_pin_mux(void);
|
void enable_uart0_pin_mux(void);
|
||||||
void enable_i2c_pin_mux(void);
|
void enable_i2c_pin_mux(void);
|
||||||
void enable_board_pin_mux(void);
|
void enable_board_pin_mux(void);
|
||||||
|
|
|
@ -269,13 +269,14 @@ int ft_board_setup(void *blob, bd_t *bd)
|
||||||
|
|
||||||
static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
|
static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;
|
||||||
|
|
||||||
void pmicsetup(u32 mpupll)
|
void pmicsetup(u32 mpupll, unsigned int bus)
|
||||||
{
|
{
|
||||||
int mpu_vdd;
|
int mpu_vdd;
|
||||||
int usb_cur_lim;
|
int usb_cur_lim;
|
||||||
|
|
||||||
if (i2c_probe(TPS65217_CHIP_PM)) {
|
if (power_tps65217_init(bus)) {
|
||||||
puts("PMIC (0x24) not found! skip further initalization.\n");
|
printf("WARN: cannot setup PMIC 0x24 @ bus #%d, not found!.\n",
|
||||||
|
bus);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,6 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||||
CONFIG_BOOTCOUNT_LIMIT=y
|
CONFIG_BOOTCOUNT_LIMIT=y
|
||||||
CONFIG_DM_GPIO=y
|
CONFIG_DM_GPIO=y
|
||||||
CONFIG_DM_I2C=y
|
CONFIG_DM_I2C=y
|
||||||
CONFIG_DM_I2C_COMPAT=y
|
|
||||||
CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
|
CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
|
||||||
CONFIG_MISC=y
|
CONFIG_MISC=y
|
||||||
CONFIG_DM_MMC=y
|
CONFIG_DM_MMC=y
|
||||||
|
|
|
@ -73,7 +73,6 @@ CONFIG_BLK=y
|
||||||
CONFIG_BOOTCOUNT_LIMIT=y
|
CONFIG_BOOTCOUNT_LIMIT=y
|
||||||
CONFIG_DM_GPIO=y
|
CONFIG_DM_GPIO=y
|
||||||
CONFIG_DM_I2C=y
|
CONFIG_DM_I2C=y
|
||||||
CONFIG_DM_I2C_COMPAT=y
|
|
||||||
CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
|
CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
|
||||||
CONFIG_MISC=y
|
CONFIG_MISC=y
|
||||||
# CONFIG_MMC is not set
|
# CONFIG_MMC is not set
|
||||||
|
|
|
@ -76,7 +76,6 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
|
||||||
CONFIG_BOOTCOUNT_LIMIT=y
|
CONFIG_BOOTCOUNT_LIMIT=y
|
||||||
CONFIG_DM_GPIO=y
|
CONFIG_DM_GPIO=y
|
||||||
CONFIG_DM_I2C=y
|
CONFIG_DM_I2C=y
|
||||||
CONFIG_DM_I2C_COMPAT=y
|
|
||||||
CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
|
CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
|
||||||
CONFIG_MISC=y
|
CONFIG_MISC=y
|
||||||
CONFIG_DM_MMC=y
|
CONFIG_DM_MMC=y
|
||||||
|
|
Loading…
Add table
Reference in a new issue