Home
last modified time | relevance | path

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

/external/u-boot/drivers/power/
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()