summaryrefslogtreecommitdiff
path: root/include/power_led.h
diff options
context:
space:
mode:
authorLouis Yung-Chieh Lo <yjlou@chromium.org>2014-04-23 16:39:32 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-04-24 19:42:37 +0000
commitb0409436adcf68cda3bf70a2964b9fdee599189a (patch)
tree85bd0905fda577c8bb0276cd704c6233cdecccee /include/power_led.h
parente99512a45602f05b1873375748f517ebd5e943b2 (diff)
downloadchrome-ec-b0409436adcf68cda3bf70a2964b9fdee599189a.tar.gz
charger v2: only configure charger when AC is on.
The CL fcf26a4 enabled periodically charge_request(). However, that could fail and generates lots of error message in the EC console if the AC is not on and charger refuses the request (even it is 0v/0mA). BUG=none BRANCH=tot,nyan TEST=make runtests. Tested on big. Expect NO below annoying error message [1.353104 charge_request(0mV, 0mA)] [1.453170 charge_request(0mV, 0mA)] [1.553281 charge_request(0mV, 0mA)] [1.653317 charge_request(0mV, 0mA)] in the follwing cases: AC on, battery attached, power on, then remove/plug in AC. AC on, battery attached, power on, then remove/plug in battery. AC on, battery removed, power on, then plug in and remove battery. AC off, battery attached, power on, then plug in and remove AC. 'chgstate' also shows good state. At final, charge for 10 mins. Change-Id: Icc729c52246df1ecfb7f289b5078dbc122b20a74 Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/196678 Reviewed-by: Lin Cloud <cloud_lin@compal.com> Tested-by: Lin Cloud <cloud_lin@compal.com> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/power_led.h')
0 files changed, 0 insertions, 0 deletions