Home
last modified time | relevance | path

Searched refs:boot_charge_mah (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Drk817_charger.c751 u32 boot_voltage, boot_charge_mah; in rk817_read_or_set_full_charge_on_boot() local
807 boot_charge_mah = ADC_TO_CHARGE_UAH(tmp, in rk817_read_or_set_full_charge_on_boot()
833 charger->soc = (boot_charge_mah * 1000 * 100 / in rk817_read_or_set_full_charge_on_boot()
842 boot_charge_mah = charger->soc * charger->fcc_mah / 100 / 1000; in rk817_read_or_set_full_charge_on_boot()
843 if (boot_charge_mah > charger->fcc_mah) in rk817_read_or_set_full_charge_on_boot()
844 boot_charge_mah = charger->fcc_mah; in rk817_read_or_set_full_charge_on_boot()
845 tmp = CHARGE_TO_ADC(boot_charge_mah, charger->res_div); in rk817_read_or_set_full_charge_on_boot()