mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
ec917e64b25abffc003f90dc544cc196b7ae3e78
This commit enables the interrupt handlers for the SN5S330 for both meowth and zoombini. Additionally, on meowth the interrupt line is shared between the TCPC and the PPC, therefore we have to check both parts when an interrupt occurs. The TCPC will be serviced first, however when reporting the alert status, we need to actually read the alert registers since we cannot simply use the level of the interrupt line as the PPC may be asserting an interrupt as well. The PPC is currently setup to interrupt on PP1 overcurrent situations. The EC will then notify the AP of the overcurrent status by simply setting the overcurrent GPIOs. BUG=b:69139844 BRANCH=None TEST=Flash meowth; Verify EC boots up okay. TEST=Flash zoombini; Verify EC boots up okay. Verify can still perform PD negotiation. CQ-DEPEND=CL:797936 Change-Id: I43445799088711de9d5ed488abc945e6f1084918 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/797937 Commit-Ready: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@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%