Home
last modified time | relevance | path

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

/u-boot/drivers/power/mfd/
A Dfg_max77693.c50 struct power_battery *pb = bat->pbat; in power_update_battery()
69 struct power_battery *pb = bat->pbat; in power_check_battery()
87 ret = power_update_battery(p, bat); in power_check_battery()
92 pb->bat->state_of_chrg); in power_check_battery()
95 pb->bat->voltage_uV / 1000000, in power_check_battery()
97 pb->bat->capacity); in power_check_battery()
99 if (pb->bat->voltage_uV > 3850000) in power_check_battery()
100 pb->bat->state = EXT_SOURCE; in power_check_battery()
101 else if (pb->bat->voltage_uV < 3600000 || pb->bat->state_of_chrg < 5) in power_check_battery()
102 pb->bat->state = CHARGE; in power_check_battery()
[all …]
/u-boot/drivers/power/battery/
A Dbat_trats.c18 static int power_battery_charge(struct pmic *bat) in power_battery_charge() argument
20 struct power_battery *p_bat = bat->pbat; in power_battery_charge()
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()
68 .bat = &battery_trats,
A Dbat_trats2.c16 static int power_battery_charge(struct pmic *bat) in power_battery_charge() argument
18 struct power_battery *p_bat = bat->pbat; in power_battery_charge()
20 if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450)) in power_battery_charge()
42 .bat = &battery_trats,
/u-boot/drivers/power/fuel_gauge/
A Dfg_max17042.c212 pb->bat->voltage_uV = (pb->bat->voltage_uV * 625); in power_update_battery()
215 pb->bat->capacity = val >> 2; in power_update_battery()
238 pb->bat->version = val; in power_check_battery()
240 power_update_battery(p, bat); in power_check_battery()
243 pb->bat->state_of_chrg); in power_check_battery()
248 pb->bat->capacity); in power_check_battery()
250 if (pb->bat->voltage_uV > 3850000) in power_check_battery()
251 pb->bat->state = EXT_SOURCE; in power_check_battery()
252 else if (pb->bat->voltage_uV < 3600000 || pb->bat->state_of_chrg < 5) in power_check_battery()
253 pb->bat->state = CHARGE; in power_check_battery()
[all …]
/u-boot/arch/powerpc/cpu/mpc86xx/
A Dcpu_init.c84 ppc_bat_t bat = DBAT0; in init_addr_map() local
88 for (i = 0; i < CONFIG_SYS_NUM_ADDR_MAP; i++, bat++) { in init_addr_map()
89 if (read_bat(bat, &upper, &lower) != -1) { in init_addr_map()
99 if (bat == DBAT3) in init_addr_map()
100 bat = DBAT4 - 1; in init_addr_map()
/u-boot/include/power/
A Dpmic.h47 int (*fg_battery_check) (struct pmic *p, struct pmic *bat);
48 int (*fg_battery_update) (struct pmic *p, struct pmic *bat);
58 struct battery *bat; member
59 int (*battery_init) (struct pmic *bat, struct pmic *p1,
61 int (*battery_charge) (struct pmic *bat);
/u-boot/arch/powerpc/lib/
A Dbat_rw.c20 int write_bat (ppc_bat_t bat, unsigned long upper, unsigned long lower) in write_bat() argument
26 switch (bat) { in write_bat()
123 int read_bat (ppc_bat_t bat, unsigned long *upper, unsigned long *lower) in read_bat() argument
128 switch (bat) { in read_bat()
/u-boot/board/ti/sdp4430/
A Dcmd_bat.c35 bat, 2, 1, do_vbat,
/u-boot/arch/powerpc/include/asm/
A Dmmu.h153 extern int read_bat(ppc_bat_t bat, unsigned long *upper, unsigned long *lower);
154 extern int write_bat(ppc_bat_t bat, unsigned long upper, unsigned long lower);
/u-boot/board/samsung/trats2/
A Dtrats2.c186 if (pb->bat->state == CHARGE && chrg == CHARGER_USB) in exynos_power_init()
/u-boot/board/samsung/trats/
A Dtrats.c177 if (pb->bat->state == CHARGE && chrg == CHARGER_USB) in exynos_power_init()
/u-boot/doc/
A DREADME.power-framework127 power consumption when one calls "pmic BAT_TRATS bat charge" command.
/u-boot/arch/powerpc/cpu/mpc83xx/hid/
A DKconfig420 bool "High bat enable"

Completed in 15 milliseconds