Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/power/
H A Dtwl6030.c111 int battery_current = 0; in twl6030_get_battery_current() local
117 battery_current = ((msb << 8) | lsb); in twl6030_get_battery_current()
120 if (battery_current >= 0x2000) in twl6030_get_battery_current()
121 battery_current = (battery_current - 0x4000); in twl6030_get_battery_current()
123 battery_current = battery_current * 3000 / 4096; in twl6030_get_battery_current()
124 printf("Battery Current: %d mA\n", battery_current); in twl6030_get_battery_current()
126 return battery_current; in twl6030_get_battery_current()
/openbmc/linux/drivers/power/supply/
H A Dtest_power.c37 static int battery_current = -1600; variable
124 val->intval = battery_current; in test_power_get_battery_property()
484 battery_current = tmp; in param_set_battery_current()
585 module_param(battery_current, battery_current, 0644);
586 MODULE_PARM_DESC(battery_current, "battery current (milliampere)");