Lines Matching full:rk808

13 #include <linux/mfd/rk808.h>
50 struct rk808 *rk808; member
177 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_VCALIB0_H, in rk817_bat_calib_vol()
181 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_VCALIB1_H, in rk817_bat_calib_vol()
196 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_IOFFSET_H, in rk817_bat_calib_cur()
198 regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_CAL_OFFSET_H, in rk817_bat_calib_cur()
216 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_BAT_R1, in rk817_record_battery_nvram_values()
226 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_DATA0, in rk817_record_battery_nvram_values()
232 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_DATA3, in rk817_record_battery_nvram_values()
242 struct rk808 *rk808 = charger->rk808; in rk817_bat_calib_cap() local
264 regmap_bulk_write(rk808->regmap, RK817_GAS_GAUGE_Q_INIT_H3, in rk817_bat_calib_cap()
278 regmap_bulk_read(rk808->regmap, RK817_GAS_GAUGE_Q_PRES_H3, in rk817_bat_calib_cap()
301 regmap_bulk_write(rk808->regmap, in rk817_bat_calib_cap()
315 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_BAT_VOL_H, in rk817_bat_calib_cap()
321 regmap_bulk_read(rk808->regmap, RK817_GAS_GAUGE_Q_PRES_H3, in rk817_bat_calib_cap()
345 regmap_bulk_write(rk808->regmap, in rk817_bat_calib_cap()
368 regmap_read(charger->rk808->regmap, RK817_GAS_GAUGE_ADC_CONFIG1, &reg); in rk817_read_props()
372 regmap_write_bits(charger->rk808->regmap, in rk817_read_props()
379 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_Q_PRES_H3, in rk817_read_props()
392 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_BAT_VOL_H, in rk817_read_props()
402 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_BAT_CUR_H, in rk817_read_props()
412 regmap_read(charger->rk808->regmap, RK817_PMIC_CHRG_OUT, &reg); in rk817_read_props()
420 regmap_read(charger->rk808->regmap, RK817_PMIC_CHRG_OUT, &reg); in rk817_read_props()
425 regmap_read(charger->rk808->regmap, RK817_PMIC_CHRG_STS, &reg); in rk817_read_props()
429 regmap_read(charger->rk808->regmap, RK817_PMIC_CHRG_STS, &reg); in rk817_read_props()
444 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_USB_VOL_H, in rk817_read_props()
616 struct rk808 *rk808; in rk817_plug_out_isr() local
619 rk808 = charger->rk808; in rk817_plug_out_isr()
630 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, in rk817_plug_out_isr()
632 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, RK817_USB_VLIM_EN, in rk817_plug_out_isr()
639 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, in rk817_plug_out_isr()
641 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, RK817_USB_ILIM_EN, in rk817_plug_out_isr()
700 ret = regmap_bulk_read(charger->rk808->regmap, in rk817_read_battery_nvram_values()
727 ret = regmap_bulk_read(charger->rk808->regmap, in rk817_read_battery_nvram_values()
744 struct rk808 *rk808 = charger->rk808; in rk817_read_or_set_full_charge_on_boot() local
754 ret = regmap_read(rk808->regmap, RK817_GAS_GAUGE_GG_STS, &reg); in rk817_read_or_set_full_charge_on_boot()
764 regmap_bulk_read(rk808->regmap, RK817_GAS_GAUGE_PWRON_VOL_H, in rk817_read_or_set_full_charge_on_boot()
786 regmap_write_bits(rk808->regmap, RK817_GAS_GAUGE_GG_STS, in rk817_read_or_set_full_charge_on_boot()
797 regmap_bulk_read(rk808->regmap, RK817_GAS_GAUGE_Q_PRES_H3, in rk817_read_or_set_full_charge_on_boot()
815 regmap_read(rk808->regmap, RK817_GAS_GAUGE_OFF_CNT, &off_time); in rk817_read_or_set_full_charge_on_boot()
817 regmap_bulk_read(rk808->regmap, in rk817_read_or_set_full_charge_on_boot()
842 ret = regmap_bulk_write(rk808->regmap, RK817_GAS_GAUGE_Q_INIT_H3, in rk817_read_or_set_full_charge_on_boot()
851 ret = regmap_bulk_write(rk808->regmap, RK817_GAS_GAUGE_Q_MAX_H3, in rk817_read_or_set_full_charge_on_boot()
862 struct rk808 *rk808 = charger->rk808; in rk817_battery_init() local
869 regmap_read(rk808->regmap, RK817_SYS_STS, &tmp); in rk817_battery_init()
877 regmap_write(rk808->regmap, RK817_GAS_GAUGE_ADC_CONFIG0, 0xfc); in rk817_battery_init()
884 regmap_write(rk808->regmap, RK817_GAS_GAUGE_GG_CON, 0x04); in rk817_battery_init()
893 regmap_bulk_write(rk808->regmap, RK817_GAS_GAUGE_RELAX_THRE_H, in rk817_battery_init()
900 regmap_bulk_write(rk808->regmap, RK817_GAS_GAUGE_SLEEP_CON_SAMP_CUR_H, in rk817_battery_init()
904 regmap_write_bits(rk808->regmap, RK817_GAS_GAUGE_GG_STS, in rk817_battery_init()
911 regmap_write(rk808->regmap, RK817_GAS_GAUGE_OCV_THRE_VOL, 0xff); in rk817_battery_init()
966 ret = regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_OUT, in rk817_battery_init()
974 ret = regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_OUT, in rk817_battery_init()
983 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_TERM, in rk817_battery_init()
1003 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_TERM, in rk817_battery_init()
1014 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, in rk817_battery_init()
1016 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, RK817_USB_VLIM_EN, in rk817_battery_init()
1023 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, in rk817_battery_init()
1025 regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, RK817_USB_ILIM_EN, in rk817_battery_init()
1052 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk817_charger_probe() local
1074 charger->rk808 = rk808; in rk817_charger_probe()