Files
OpenCellular/common
Yen Lin ebb54a453d nyan: add support of different battery types
Nyan EC supports 2 different boards: Venice2 and Norrin. Venice2
uses 2S battery, and Norrin uses 3S battery. This CL is to support
2 different battery types (2S or 3S) automatically at init time by
reading battery's MANUF_NAME, DEVICE_NAME and DESIGN_VOLTAGE from
Smart Battery Interface to determine which battery type to use.

To workaround the problem that battery may not be attached at init
time, a patch is added to call battery_get_info() in PWR_STATE_INIT
state to get the current battery info. Note the battery info is only
determined once.

BUG=none
BRANCH=nyan
TEST=tested on Vencie2 with 2S battery and on Norrin with 3S battery
     attached at init time and made sure correct battery info are
     installed;
     tested on Venice2 and Norrin without battery at init time, then
     attached 2S or 3S battery and made sure correct battery info are
     installed.

Change-Id: I135909c7fe1e1dfdb0f706e0eadba6e904b6221e
Signed-off-by: Yen Lin <yelin@nvidia.com>
Reviewed-on: https://chromium-review.googlesource.com/178088
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-12-04 01:52:11 +00:00
..
2013-12-02 22:03:51 +00:00
2013-10-25 20:12:49 +00:00
2013-12-02 22:03:51 +00:00
2013-11-21 22:21:34 +00:00
2013-10-25 01:32:31 +00:00
2013-10-30 23:10:13 +00:00
2013-08-07 12:43:48 -07:00
2013-09-10 23:46:07 +00:00
2012-10-26 09:49:38 -07:00
2013-06-10 01:48:44 -07:00
2012-10-25 17:03:44 -07:00
2013-11-01 20:07:24 +00:00
2013-11-13 05:19:09 +00:00
2013-09-05 07:20:56 +00:00
2013-11-04 23:15:38 +00:00
2013-10-31 18:43:39 +00:00