Lines Matching full:max14577

11 #include <linux/mfd/max14577-private.h>
12 #include <linux/mfd/max14577.h>
16 struct max14577 *max14577; member
23 * Helper function for mapping values of STATUS2/CHGTYP register on max14577
42 WARN_ONCE(1, "max14577: Unsupported chgtyp register value 0x%02x", val); in maxim_get_charger_type()
49 struct regmap *rmap = chg->max14577->regmap; in max14577_get_charger_state()
123 struct regmap *rmap = chg->max14577->regmap; in max14577_get_online()
133 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_online()
162 struct regmap *rmap = chg->max14577->regmap; in max14577_get_battery_health()
172 chg_type = maxim_get_charger_type(chg->max14577->dev_type, reg_data); in max14577_get_battery_health()
196 * The max14577 chip doesn't report any status of battery presence.
226 return max14577_update_reg(chg->max14577->regmap, in max14577_set_fast_charge_timer()
257 return max14577_write_reg(chg->max14577->regmap, in max14577_init_constant_voltage()
267 switch (chg->max14577->dev_type) { in max14577_init_eoc()
296 return max14577_update_reg(chg->max14577->regmap, in max14577_init_eoc()
307 &maxim_charger_currents[chg->max14577->dev_type]; in max14577_init_fast_charge()
315 return max14577_update_reg(chg->max14577->regmap, in max14577_init_fast_charge()
328 struct regmap *rmap = chg->max14577->regmap; in max14577_charger_reg_init()
404 [MAXIM_DEVICE_TYPE_UNKNOWN] = "MAX14577-like",
405 [MAXIM_DEVICE_TYPE_MAX14577] = "MAX14577",
435 val->strval = model_names[chg->max14577->dev_type]; in max14577_charger_get_property()
448 .name = "max14577-charger",
516 ret = max14577_read_reg(chg->max14577->regmap, MAX14577_REG_CHGCTRL1, in show_fast_charge_timer()
563 struct max14577 *max14577 = dev_get_drvdata(pdev->dev.parent); in max14577_charger_probe() local
572 chg->max14577 = max14577; in max14577_charger_probe()
616 { "max14577-charger", MAXIM_DEVICE_TYPE_MAX14577, },
623 { .compatible = "maxim,max14577-charger",
633 .name = "max14577-charger",