servo: Use ec reboot wait-ext for power_state:rec

EC_IN_RW signal is used to determine if the switch to dev mode can be
safely made. However, EC_IN_RW needs the EC_RST_L line driven low in
order to be reset. In faft tests that utilize crosEcSoftrecPower
method, EC_RST_L is not being driven by servo to fix other test
failures related to keeping EC and AC reboots in sync.

This CL modifies crosEcSoftrecPower to use the wait-ext option when
initializing an EC reset to to enter recovery mode. If the wait-ext
option fails, then the command 'reboot ap-off' will be issued.

BUG=b:64603944
BRANCH=coral
CQ-DEPEND=I614f9156066d5719601ee43e29c7a064f9bba6e2
TEST=Ran "/usr/bin/test_that --board=coral <ip addr> firmware_DevMode"
mutliple times and verified that it passes. Previoulsy, this test
always fails when the EC is in RW before it starts. Also verified
platform_ServoPowerStateController_USBPluggedin passed.

Change-Id: I086687c3dd7591460099267880d56ab8265d2e4b
Signed-off-by: Scott Collyer <scollyer@google.com>
Reviewed-on: https://chromium-review.googlesource.com/738634
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
1 file changed