mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-14 00:26:30 +00:00
bbc34f225e66f993a906eea64c45ff82b23050ee
An ADC conversion requires ~10 msec. However, if the bq25703 is in low power mode, then this conversion time jumps to ~55 msec. This CL adds a method to exit/enter low power mode and adds a call to exit low power mode prior to starting the ADC conversion. Following the conversion, low power mode is entered again. BRANCH=none BUG=b:79771760 TEST=Connected AC power and verified that EC console error message 'Could not read input current limit ADC' is no longer shown. In addition, had instrumented this the ADC conversion with GPIO signals and verified the conversion times before/after exiting low power mode. Change-Id: I13f36e6261e219adbc8624f71bf7916bbc631b10 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/1069768 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Jett Rink <jettrink@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%