linux/drivers/power
Daniel Mack 8d631ccff8 ds2760_battery: implement set_charged() feature
The ds2760's internal current meter is not reliable enough as it has an
inacurracy of around ~15%. Without any correction for that error, the
current accumulator is couting up all the time, even though the battery
is already fully charged and hence destroys the static information. The
longer it is connected, the worse is the aberration.

Fortunately, this can be corrected by the DS2760_CURRENT_OFFSET_BIAS
register. Using the external power_supply_set_battery_charged()
function, this register is now gauging the measurement.

A delayed work is used to debounce flaky GPIO signals and to let the
current value settle. Also see Maxim's application note AN4188.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
Cc: Matt Reimer <mreimer@vpop.net>
Cc: Anton Vorontsov <cbou@mail.ru>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
2009-07-30 17:49:16 +04:00
..
apm_power.c
bq27x00_battery.c
da9030_battery.c da9030_battery: Fix race between event handler and monitor 2009-06-09 01:12:38 +04:00
ds2760_battery.c ds2760_battery: implement set_charged() feature 2009-07-30 17:49:16 +04:00
ds2782_battery.c Add ds2782 battery gas gauge driver 2009-07-01 02:36:58 +04:00
Kconfig Add ds2782 battery gas gauge driver 2009-07-01 02:36:58 +04:00
Makefile Add ds2782 battery gas gauge driver 2009-07-01 02:36:58 +04:00
max17040_battery.c Add MAX17040 Fuel Gauge driver 2009-06-09 00:53:21 +04:00
olpc_battery.c power_supply: Add a charge_type property, and use it for olpc driver 2009-07-02 18:14:37 +04:00
pcf50633-charger.c
pda_power.c
pmu_battery.c
power_supply_core.c power_supply: get_by_name and set_charged functionality 2009-07-30 17:49:15 +04:00
power_supply_leds.c
power_supply_sysfs.c power_supply: Add a charge_type property, and use it for olpc driver 2009-07-02 18:14:37 +04:00
power_supply.h
tosa_battery.c
wm97xx_battery.c
wm8350_power.c wm8350_power: Implement charge type property 2009-07-14 18:05:56 +04:00