power: android battery: add generic android battery driver
authorTodd Poynor <toddpoynor@google.com>
Fri, 27 Jul 2012 18:27:33 +0000 (11:27 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:54 +0000 (13:40 -0700)
commita4ef8bd7d80e74ad34b4d7c17401fcfb333c3434
tree74a7b8835efc277fbd8b5a277dfd1519a106182c
parentf10e9afc78a864208a01cd33557d114efa121ce4
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>
drivers/power/Kconfig
drivers/power/Makefile
drivers/power/android_battery.c [new file with mode: 0644]
include/linux/platform_data/android_battery.h [new file with mode: 0644]