diff options
author | Andy Green <andy@openmoko.com> | 2008-11-19 17:09:46 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:09:46 +0000 |
commit | ef22f4a84f59f4dd99a0354b82e14f4e4cecd0cd (patch) | |
tree | 4c0e78f5bf36b064649f8e43b834c5f1ddcea218 /include | |
parent | d62fdf8ac6d23111f8fa7f80f13c175f0e5a8ffe (diff) |
introduce-charging-led-behaviour.patch
Creates a new behaviour requested by Will that the red LED on GTA02
is lit during battery charging.and goes out when the battery is full.
This is done by leveraging the PMU interrupts, but in one scenario
there is no interrupt that occurs, when the battery is replaced after
being removed with the USB power in all the while. So a sleepy work
function is started under those circumstances to watch for battery
reinsertion or USB cable pull.
100mA limit was not being observed under some conditions so this was
fixed and tested with a USB cable with D+/D- disconnected. 1A
charger behaviour was also tested.
Showing the charging action exposes some inconsistency in pcf50633
charging action. If your battery is nearly full, it will keep
charging it at decreasing current even after it thinks it is at
100% capacity for a long while. But if you pull that same battery
and re-insert it, the charger state machine in pcf50633 believe it is
full and won't charge it.
Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pcf506xx.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pcf506xx.h b/include/linux/pcf506xx.h index 33be73eeb2c..9069bd4e088 100644 --- a/include/linux/pcf506xx.h +++ b/include/linux/pcf506xx.h @@ -21,6 +21,8 @@ enum pmu_event { PMU_EVT_USB_INSERT, PMU_EVT_USB_REMOVE, #endif + PMU_EVT_CHARGER_ACTIVE, + PMU_EVT_CHARGER_IDLE, __NUM_PMU_EVTS }; |