af7d56c518af0c6884e15ec6f5f93aac3be317eb |
|
05-Oct-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android-battery: use freezable workqueue for monitor Alarmtimer may execute the monitor early in the resume sequence. Freeze the monitor while suspended, and unfreeze after the battery charger and fuel gauge, etc. drivers are resumed. Change-Id: Iefda1c642d4b2440169d90d2bee2888fc70e030a Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
711507934538462ab7c71f696f9112504795ce43 |
|
05-Oct-2012 |
HongMin Son <hongmin.son@samsung.com> |
power: android-battery: Fix battery alarm timer not modified at suspend - Alarm Timer driver is suspended before battery driver, so alarm timer was not changed to slow poll speed at suspend. Use PM notifiers instead. - If charger is connected, keep 1 min alarm timer. Signed-off-by: HongMin Son <hongmin.son@samsung.com> Signed-off-by: Todd Poynor <toddpoynor@google.com> Change-Id: Id0f3bda5d0749fd90f1964073bc30c1a73fc317f
|
642989a90ed5a0b339831aad5b8534032e3fdc88 |
|
05-Oct-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android-battery: leave full/not-charging status when charger re-sensed If charger was connected and a charge source change event occurs such that the charger is still connected (or a different charge source connected), do not overwrite an existing state such as full or not-charging. Only switch from discharging to charging on a charge source change event. Change-Id: I1b841c8f3a92bf15074999e18b17d1d19ce028d7 Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
01ceb9f89c6bb1d2e4256c96172132e6eeb10747 |
|
05-Oct-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android-battery: Add state locking Change-Id: I83abd61f0ee2541f5406258b2c07f76af7d2acb5 Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
72b33a75768e46324a30f32d13c589816a778e1a |
|
28-Sep-2012 |
HongMin Son <hongmin.son@samsung.com> |
power: android-battery: add charge timeouts and recharge logic Add recharge logic when voltage threshold reached. Add charge and recharge timeouts. Change-Id: I3ef3b926ce694115dde7f8056072bef63884a5d0 Signed-off-by: HongMin Son <hongmin.son@samsung.com> Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
a4af039bcb3853df31e78cfb38353f555697505e |
|
23-Aug-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android-battery: use 1/10th deg C units for temperature Same units as power_supply, don't need 1/10000 deg C and conversion is error-prone. Change-Id: I8cf146d2a7725df2dacc415daa66b2986b69f2a7 Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
014ebc84e0a2f5cfd619d66388dcffda759f39cc |
|
23-Aug-2012 |
hongmin.son <hongmin.son@samsung.com> |
power: android-battery: Add USB and AC battery power supplies For reflecting board-level decisions on whether USB or AC charger is connected, which may differ from charger power supply notion of USB input path (which may be connected to an AC charger) vs. AC input path. Change-Id: I9d2eb446db8b4d9496ba7ce1472d0e7a4d4e24ef [toddpoynor@google.com: refactoring] Signed-off-by: hongmin.son <hongmin.son@samsung.com> Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
cd644f058f88028fb0b036cc1eb8c44e385ad10c |
|
23-Aug-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android-battery: Provide fake values when fuel gauge missing Avoid shutdown due to battery capacity or temperature out of range. Change-Id: I54abe4dc54bf2fb8a9b972a3940e6fd93cc60473 Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
944b1ea9c0aa9eb0e50b602eaca83e6e93c92a58 |
|
07-Aug-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android_battery: nn.n temperature format for /d/android-power Change-Id: I0c20effcadd3c0673d04be190133883b3c2bf599 Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
cf3bfd9426609a72cc480ff2ce4b5168ed900e6b |
|
06-Aug-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android_battery: fix negative temperature display Change-Id: Ic9798bc5194b6192fec726a8f136867f111e4765 Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
fa3a7b498ae6d8a650cf5b3d0e781caed2e1243d |
|
04-Aug-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android: switch to nn.n format for temperature readings Change-Id: I67b44e5c706c94f5e2031da9dab3dddb1a4b6b3f Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
5c4d1bb09291ff33d6a73254fb07df493604ec13 |
|
02-Aug-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android: battery monitor polling with wakeup alarms Based on Tuna code from 3.0 ported to 3.4 alarm API. Change-Id: I9b13209963d5a5043237e9e29f3cb07c40583af2 Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
978d18c91fe014bce4ed16ded53ec51b8aec056b |
|
01-Aug-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android: add /d/android-power Change-Id: I306ae5928bb5c32dc986811cfa3a6dd98519a2d7 Signed-off-by: Todd Poynor <toddpoynor@google.com>
|
1e34b11bc23cb33c285455d750852ee7a5df1ef1 |
|
27-Jul-2012 |
Todd Poynor <toddpoynor@google.com> |
power: android battery: add generic android battery driver Add a generic battery power supply and glue logic for talking to the board battery driver. This driver handles common chores such as: * periodic battery level and health monitoring * kernel log reporting and other debugging features for key properties provided by different charger, fuel gauge, etc. components * ensure properties such as battery health are made available to userspace * common processing for board-level battery/case temperature sensors and policy for charging status based on battery health Based on work by himihee.seo@samsung.com, ms925.kim@samsung.com, and joshua.chang@samsung.com. Change-Id: I5fa8e8d68811d84820b7a130b0245ad2b5b6d36b Signed-off-by: Todd Poynor <toddpoynor@google.com>
|