diff options
author | Todd Broch <tbroch@chromium.org> | 2014-08-07 14:06:43 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-16 05:26:40 +0000 |
commit | e1ff1a3caef94bef3c2ea9e8036aa784be26ef1b (patch) | |
tree | 2b502fe069c0c9395b53630db3af87dcd4cb7424 /util | |
parent | f3c308108b88ff4c8ac276269da056560265bf1b (diff) | |
download | chrome-ec-e1ff1a3caef94bef3c2ea9e8036aa784be26ef1b.tar.gz |
hoho: Initial board configuration.
Create necessary boiler plate files for USB type-C to HDMI dongle.
BRANCH=none
BUG=chrome-os-partner:31192
TEST=manual
1. Compiles & can program via fruitpie.
2. Can access uart (w/ rework for tx/rx).
3. Can drive HDMI capable monitor.
test details ...
Programming:
------------
# connect fruitpie + fruitpie std-adapter(red) with u-USB (CN3) & type-A
# (CN1) both to host that will run servod.
FPIE_PORT=9993
sudo servod -p 0x5009 --port $FPIE_PORT
dut-control --port $FPIE_PORT "ec_uart_cmd:gpioset USB_C_5V_EN 1"
dut-control --port $FPIE_PORT "ec_uart_cmd:usbmux usb"
util/flash_ec --board=hoho
Configuring samus for DPout on both ports:
------------------------------------------
sudo servod -b samus
for port 0 1; do
dut-control "usbpd_uart_cmd:pd ${PORT} dualrole off"
dut-control "usbpd_uart_cmd:gpioset USB_C${PORT}_CHARGE_EN_L 1"
dut-control "usbpd_uart_cmd:typec ${PORT} dp"
dut-control "usbpd_uart_cmd:gpioset USB_C${PORT}_5V_EN 1"
dut-control "usbpd_uart_cmd:typec ${PORT}"
done
Change-Id: I39bbe1e347d1cfd777b68f3fdac6c5c6dd22800d
Signed-off-by: Todd Broch <tbroch@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/212523
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/flash_ec | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/flash_ec b/util/flash_ec index 7070b70407..279a6233bb 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -77,6 +77,7 @@ BOARDS_STM32=( BOARDS_STM32_DFU=( twinkie + hoho ) # Flags @@ -231,7 +232,7 @@ function ec_uart() { case "${BOARD}" in ryu_sh ) MCU="sh" ;; samus_pd ) MCU="usbpd" ;; - twinkie ) DUT_CONTROL_CMD="true" ; MCU="ec" ;; + twinkie|hoho ) DUT_CONTROL_CMD="true" ; MCU="ec" ;; *) MCU="ec" ;; esac |