mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
afaf93e3c7eed5211d08a642bef2c7d1d2311d2f
In some rare instances the learn bit gets inadvertently set in the charger which disables charging. Disable it in charger_set_mode unless its been set intentionally. Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=none BUG=chrome-os-partner:51196 BUG=chrome-os-partner:54484 TEST=manual, on Chell w/ charger attached and charging - force learn on manually, see charging stop i2cxfer w16 4 0x12 0x3c 0x1000 - wait a second, see charging restored - check learn has been disabled i2cxfer r16 4 0x12 0x3 0x0000 - set learn on explicitly ectool chargecontrol off - see charging remain disabled - check learn has been enabled i2cxfer r16 4 0x12 0x3 0x1000 ectool chargecontrol normal Change-Id: I26f1e855dcad1aa41530d06555a9be7956fdf435 Reviewed-on: https://chromium-review.googlesource.com/353530 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%