mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
67759f3553555a7ea6c3a5296934cbbed2297c68
Virtual battery implements a smart battery interface, but the actual battery on the system may speak a different protocol. Support such batteries by removing direct i2c access from the virtual battery driver. Fetch data from storage when available, and call generic battery routines when not. BUG=chromium:717753 BRANCH=None TEST=Manual on kevin, boot and verify "Unhandled VB reg" prints are not seen. Verify by-eye that all regs in cros 4.4 kernel sbs-battery.c are handled (except REG_MANUFACTURER_DATA). Verify that sysfs manufacturer, model name, time_to_full_avg and time_to_empty_avg values are all sane. Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Change-Id: Ia8fc0a80ac7576fa8bdcc3b7dac0609d9d754234 Reviewed-on: https://chromium-review.googlesource.com/547004 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@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%