Lines Matching refs:battery_volt
132 int battery_volt = 0; in twl6030_get_battery_voltage() local
155 battery_volt = twl6030_gpadc_read_channel(vbatch); in twl6030_get_battery_voltage()
156 if (battery_volt < 0) { in twl6030_get_battery_voltage()
160 battery_volt = (battery_volt * twl->vbat_mult) >> twl->vbat_shift; in twl6030_get_battery_voltage()
161 printf("Battery Voltage: %d mV\n", battery_volt); in twl6030_get_battery_voltage()
163 return battery_volt; in twl6030_get_battery_voltage()
169 int battery_volt = 0; in twl6030_init_battery_charging() local
205 battery_volt = twl6030_get_battery_voltage(); in twl6030_init_battery_charging()
206 if (battery_volt < 0) in twl6030_init_battery_charging()
209 if (battery_volt < 3000) in twl6030_init_battery_charging()
216 if ((val & VBUS_DET) && (battery_volt < 3300)) in twl6030_init_battery_charging()