Home
last modified time | relevance | path

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

/u-boot/drivers/power/battery/
A Dbat_trats.c20 struct power_battery *p_bat = bat->pbat; in power_battery_charge() local
21 struct battery *battery = p_bat->bat; in power_battery_charge()
24 if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450)) in power_battery_charge()
27 for (k = 0; bat->chrg->chrg_bat_present(p_bat->chrg) && in power_battery_charge()
28 bat->chrg->chrg_type(p_bat->muic) && in power_battery_charge()
33 bat->fg->fg_battery_update(p_bat->fg, bat); in power_battery_charge()
47 bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_DISABLE, 0); in power_battery_charge()
A Dbat_trats2.c18 struct power_battery *p_bat = bat->pbat; in power_battery_charge() local
20 if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450)) in power_battery_charge()
/u-boot/board/samsung/trats2/
A Dtrats2.c135 struct pmic *p_chrg, *p_muic, *p_fg, *p_bat; in exynos_power_init() local
163 p_bat = pmic_get("BAT_TRATS2"); in exynos_power_init()
164 if (!p_bat) { in exynos_power_init()
169 p_fg->parent = p_bat; in exynos_power_init()
170 p_chrg->parent = p_bat; in exynos_power_init()
171 p_muic->parent = p_bat; in exynos_power_init()
173 p_bat->pbat->battery_init(p_bat, p_fg, p_chrg, p_muic); in exynos_power_init()
175 pb = p_bat->pbat; in exynos_power_init()
184 p_fg->fg->fg_battery_check(p_fg, p_bat); in exynos_power_init()
/u-boot/board/samsung/trats/
A Dtrats.c120 struct pmic *p_fg, *p_chrg, *p_muic, *p_bat; in exynos_power_init() local
153 p_bat = pmic_get("BAT_TRATS"); in exynos_power_init()
154 if (!p_bat) { in exynos_power_init()
159 p_fg->parent = p_bat; in exynos_power_init()
160 p_chrg->parent = p_bat; in exynos_power_init()
161 p_muic->parent = p_bat; in exynos_power_init()
163 p_bat->low_power_mode = trats_low_power_mode; in exynos_power_init()
164 p_bat->pbat->battery_init(p_bat, p_fg, p_chrg, p_muic); in exynos_power_init()
166 pb = p_bat->pbat; in exynos_power_init()
175 p_fg->fg->fg_battery_check(p_fg, p_bat); in exynos_power_init()

Completed in 5 milliseconds