}
#define I2C_PMIC 0
+#define POWER_BD71837_I2C_BUS 0
+#define POWER_BD71837_I2C_ADDR 0x4B
int power_bd71837_init(unsigned char bus)
{
p->name = name;
p->interface = I2C_PMIC;
p->number_of_regs = BD718XX_MAX_REGISTER;
- p->hw.i2c.addr = CONFIG_POWER_BD71837_I2C_ADDR;
+ p->hw.i2c.addr = POWER_BD71837_I2C_ADDR;
p->hw.i2c.tx_num = 1;
p->bus = bus;
/*
* Init PMIC
*/
- rv = power_bd71837_init(CONFIG_POWER_BD71837_I2C_BUS);
+ rv = power_bd71837_init(POWER_BD71837_I2C_BUS);
if (rv) {
log_err("%s: power_bd71837_init(%d) error %d\n", __func__,
- CONFIG_POWER_BD71837_I2C_BUS, rv);
+ POWER_BD71837_I2C_BUS, rv);
goto out;
}
#define CONFIG_SPL_ABORT_ON_RAW_IMAGE /* For RAW image gives a error info not panic */
-#define CONFIG_POWER_BD71837
-#define CONFIG_POWER_BD71837_I2C_BUS 0
-#define CONFIG_POWER_BD71837_I2C_ADDR 0x4B
-
#endif /* CONFIG_SPL_BUILD*/
#define CFG_SYS_FSL_USDHC_NUM 2