Lines Matching refs:pmic
45 struct pmic;
47 int (*fg_battery_check) (struct pmic *p, struct pmic *bat);
48 int (*fg_battery_update) (struct pmic *p, struct pmic *bat);
52 int (*chrg_type) (struct pmic *p);
53 int (*chrg_bat_present) (struct pmic *p);
54 int (*chrg_state) (struct pmic *p, int state, int current);
59 int (*battery_init) (struct pmic *bat, struct pmic *p1,
60 struct pmic *p2, struct pmic *p3);
61 int (*battery_charge) (struct pmic *bat);
63 struct pmic *chrg, *fg, *muic;
66 struct pmic { struct
82 struct pmic *parent; argument
229 int pmic_bind_children(struct udevice *pmic, ofnode parent,
315 int check_reg(struct pmic *p, u32 reg);
316 struct pmic *pmic_alloc(void);
317 struct pmic *pmic_get(const char *s);
318 int pmic_probe(struct pmic *p);
319 int pmic_reg_read(struct pmic *p, u32 reg, u32 *val);
320 int pmic_reg_write(struct pmic *p, u32 reg, u32 val);
321 int pmic_set_output(struct pmic *p, u32 reg, int ldo, int on);