mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
When the EC is running in RO mode (ie for recovery), disable USB PD communication (just use the type-C resistor to 5V/1.5A or 5V/3A) in order to minimize the attack surface. BUG=chrome-os-partner:49744 BRANCH=none TEST=Manuel In system.c, initialized static int force_locked to 1 > reboot ap-off > chgsup port=1, type=1, cur=3000mA, vtg=5000mV Change-Id: I1b6bf302d235e9ba2f4c79250c02e97447d564c1 Reviewed-on: https://chromium-review.googlesource.com/391038 Reviewed-by: Shawn N <shawnn@chromium.org> Commit-Queue: Shawn N <shawnn@chromium.org> Tested-by: Shawn N <shawnn@chromium.org> (cherry picked from commit 360fbde14dd18e19878a3e0021dec537ecccba49) Reviewed-on: https://chromium-review.googlesource.com/389691 Commit-Ready: Shawn N <shawnn@chromium.org>