1 // SPDX-License-Identifier: GPL-2.0+
9 #include <power/pmic.h>
10 #include <power/pca9450.h>
12 static const char pca9450_name[] = "PCA9450";
14 int power_pca9450a_init(unsigned char bus)
16 struct pmic *p = pmic_alloc();
19 printf("%s: POWER allocation error!\n", __func__);
23 p->name = pca9450_name;
24 p->interface = PMIC_I2C;
25 p->number_of_regs = PCA9450_REG_NUM;
26 p->hw.i2c.addr = 0x35;
33 int power_pca9450b_init(unsigned char bus)
35 struct pmic *p = pmic_alloc();
38 printf("%s: POWER allocation error!\n", __func__);
42 p->name = pca9450_name;
43 p->interface = PMIC_I2C;
44 p->number_of_regs = PCA9450_REG_NUM;
45 p->hw.i2c.addr = 0x25;