diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2016-11-14 12:31:57 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-18 20:07:47 -0800 |
commit | 7f8ad649dd1a417a746739e86bce7dc3f0a40c1b (patch) | |
tree | 2a60bd2cb5e622a44497159f5a84e914a38aaa5f /include/battery.h | |
parent | c8557a0e4e7c3181bb40b9b068e5b79b38d7dfe1 (diff) | |
download | chrome-ec-7f8ad649dd1a417a746739e86bce7dc3f0a40c1b.tar.gz |
BD9995X/reef/snappy/pyro: Boot from the shipmode battery
Charger BGATE is off on POR hence the voltage to the battery pack is
not applied immediately from the VBUS. To overcome this issue, BGATE
is turned on (CHG_EN) at charger initialization. If the voltage across
VBATT is high but I2C is still failing, battery is booting from ship
mode hence overwrite the battery as not present till I2C on battery
is success and INIT bit is set.
BUG=chrome-os-partner:59308
BRANCH=none
TEST=Reef can boot to OS from shipmode battery.
Change-Id: If1b212612e27fd65a822675a9609f0a8c03d8add
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Signed-off-by: Divya Sasidharan <divya.s.sasidharan@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/411360
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/battery.h')
-rw-r--r-- | include/battery.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/battery.h b/include/battery.h index 4f729895b9..f2d65c7127 100644 --- a/include/battery.h +++ b/include/battery.h @@ -137,6 +137,13 @@ void battery_override_params(struct batt_params *batt); enum battery_present battery_is_present(void); /** + * Check for battery initialization status. + * + * @return zero if not initialized. + */ +int board_battery_initialized(void); + +/** * Get battery mode. * * See MODE_* constants in battery_smart.h |