@@ -148,7 +148,7 @@ int board_init(void)
# endif
# endif /* CONFIG_TEGRA_PMU */
#ifdef CONFIG_AS3722_POWER
- err = as3722_init(NULL);
+ err = as3722_init(NULL, 0, 0x40);
if (err && err != -ENODEV)
return err;
#endif
@@ -39,7 +39,7 @@ int tegra_pcie_board_init(void)
struct udevice *pmic;
int err;
- err = as3722_init(&pmic);
+ err = as3722_init(&pmic, 0, 0x40);
if (err) {
error("failed to initialize AS3722 PMIC: %d\n", err);
return err;
@@ -243,12 +243,10 @@ int as3722_get(struct udevice **devp)
return i2c_get_chip_for_busnum(bus, address, 1, devp);
}
-int as3722_init(struct udevice **devp)
+int as3722_init(struct udevice **devp, unsigned int bus, unsigned int address)
{
struct udevice *pmic;
u8 id, revision;
- const unsigned int bus = 0;
- const unsigned int address = 0x40;
int err;
err = i2c_get_chip_for_busnum(bus, address, 1, &pmic);
@@ -14,7 +14,7 @@
struct udevice;
-int as3722_init(struct udevice **devp);
+int as3722_init(struct udevice **devp, unsigned int bus, unsigned int address);
int as3722_sd_enable(struct udevice *pmic, unsigned int sd);
int as3722_sd_set_voltage(struct udevice *pmic, unsigned int sd, u8 value);
int as3722_ldo_enable(struct udevice *pmic, unsigned int ldo);