mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
fa6359737129789af7f2a1db6b2e9c05c51038fb
This commit fixes two issues: - When we transition from S3 to S0, we enable the sensor rail. Very shortly thereafter, we attempt to initialize the motion sensors. They fail on the very first i2c transaction due to the fact that the senors are not ready. Therefore, this commit adds a small 3ms delay to the end of the board_chipset_resume() hook. This allows both the motion sensors to initialize successfully when the motion sense hook is called. - In order for the delay to be effective, it must be called prior to the motion sense hook. Therefore, the priority of board_chipset_resume() is increased. BUG=chrome-os-partner:43494 BRANCH=None TEST=Build and flash GLaDOS EC, reboot several times verifying that both sensors are initialized. TEST=make buildall tests Change-Id: I86ee87955f0750cac1960be147c2b39c7d922f0a Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/299769 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%