Aseda Aboagye f31ee0c829 servo_v4: Add a CCD 'keepalive' console command.
Servo v4 monitors the SBU lines on USB-C connects in order to determine
which direction to set the orientation of the SBU mux.  However, when
there's traffic on the lines, for example when the EC is rebooting, it
can lead to the wrong conclusions and terminate the USB connection.

This commit adds a CCD keepalive console command.

Additonally, when the Type-C cable is unplugged from the DUT for at
least 900ms, the CCD keepalive will be cleared.  This is such that if
the cable is unplugged and then replugged in a different orientation,
the detection will still work.

BUG=b:64903997
BRANCH=servo
TEST=Flash servo_v4; `keepalive enable`.  Run `dut-control
power_state:reset` > 100 times and verify that the USB connection stays
alive.

Change-Id: I5c8f9ab3361d4f52f906161ab5da471a36725a4e
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Reviewed-on: https://chromium-review.googlesource.com/647031
Commit-Ready: Aseda Aboagye <aaboagye@chromium.org>
Tested-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
2017-09-06 19:13:02 -07:00
2017-08-07 19:29:13 -07:00
2017-09-06 19:12:57 -07:00
2017-07-08 20:38:53 -07:00
2017-08-29 19:37:05 -07:00
2017-08-29 19:37:04 -07:00
2012-05-11 09:11:52 -07:00
2014-04-02 19:58:53 +00:00
2015-12-08 20:05:05 -08:00

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
No description provided
Readme 1.4 GiB
Languages
C 64.7%
Lasso 20.7%
ASL 3.6%
JavaScript 3.2%
C# 2.9%
Other 4.6%