mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-11 18:35:28 +00:00
b24cfb13a923a3e7b80e2d21330b2bfb39388cf9
The EC asserts system reset on init, and Cr50 asserts ec_rst when it is rebooted. Having the EC and Cr50 keep resetting each other prevents the system from booting. We only care that Cr50 is restarted when the system is restarted, so if it gets a system reset call when it is still initializing everything it is okay to ignore it. This change expects the EC to do a system reset on init, so it ignores the first system reset. It will automatically enable the hard resets two seconds after the board is initialized if it doesn't detect the initial system reset. BUG=none BRANCH=none TEST=reef and kevin can boot normally. Verify asserting sys_rst_l after boot resets Cr50 and the rest of the system. Change-Id: I198208950c526efd3ee0171812de3052785555f2 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/358943 Reviewed-by: Vadim Bendebury <vbendeb@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%