diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2016-07-14 17:55:01 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-07-18 13:33:04 -0700 |
commit | 3f9ee35859859976712c0c43071cd9b0482f31a2 (patch) | |
tree | 2304b931cbb4b693a9bc1aab8fadaf9e44121f09 /board/reef | |
parent | 06ca7d4d9137b407a3cf5dd86bdb1cdb4e6334e7 (diff) | |
download | chrome-ec-3f9ee35859859976712c0c43071cd9b0482f31a2.tar.gz |
BD99955: System VR in battery LEARN, Cut-off & No-battery condition
Regulate the system voltage by setting the charging voltage to battery
maximum in case of battery LEARN, Cut-off & No-battery conditions.
BUG=chrome-os-partner:55292, chrome-os-partner:55255
BRANCH=none
TEST=Manually tested on Amenia using console command charger.
Charging voltage is set to battery max in LEARN, Cut-off &
No-battery conditions.
Change-Id: I74bbab8174fd63b5f8439b8b35098db4a506d72d
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/360681
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Divya S Sasidharan <divya.s.sasidharan@intel.com>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/reef')
-rw-r--r-- | board/reef/battery.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/board/reef/battery.c b/board/reef/battery.c index 5f29aa0628..2b86f7f012 100644 --- a/board/reef/battery.c +++ b/board/reef/battery.c @@ -34,15 +34,7 @@ static const struct battery_info info = { const struct battery_info *battery_get_info(void) { - static struct battery_info batt_info; - - if (battery_is_present() == BP_YES) - return &info; - - /* Use voltage_max for voltage min if battery is not present */ - batt_info = info; - batt_info.voltage_min = batt_info.voltage_max; - return &batt_info; + return &info; } int board_cut_off_battery(void) |