mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-07 16:11:43 +00:00
This allows us to control PD role and type-C mux through ectool.
BUG=None
TEST=Change role/mux on samus using ectool:
$ ./ectool --interface=lpc --dev 1 usbpd 0 usb
-> In EC console, 'typec 0' shows 'Superspeed USB1'
$ ./ectool --interface=lpc --dev 1 usbpd 0 sink
-> In EC console, 'pd 0 state' shows 'force sink'
BRANCH=None
Change-Id: I5b90fb53ea1c30e3bc269c12d61e4398c5dcee6c
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/209956
Reviewed-by: Alec Berg <alecaberg@chromium.org>
108 KiB
108 KiB