From 769464c544a0800bc351fd9c948c10efc2080f7f Mon Sep 17 00:00:00 2001 From: Nick Sanders Date: Tue, 2 May 2017 22:21:23 -0700 Subject: tigertail: default to mux A Default mux to A on power on. This allows charge on idle or unconfigured systems so the device won't run out of batteries while idle. BRANCH=None BUG=b:37542705 TEST=reboot tigertail. Device charges through port A. Change-Id: I4f12629978fd06c8ea781330243abbbaea7efe4b Reviewed-on: https://chromium-review.googlesource.com/493922 Commit-Ready: Nick Sanders Tested-by: Nick Sanders Reviewed-by: Aseda Aboagye --- board/tigertail/board.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/board/tigertail/board.c b/board/tigertail/board.c index 923fcc8e40..6dd2a2265c 100644 --- a/board/tigertail/board.c +++ b/board/tigertail/board.c @@ -392,8 +392,13 @@ static void board_init(void) /* UART init */ usart_init(&usart1); - /* No default type-c mux. TODO: would we like this to be set? */ - set_mux_state(MUX_OFF); + + /* + * Default to port A, to allow easier charging and + * detection of unconfigured devices. + */ + set_mux_state(MUX_A); + /* Note that we can't enable AUTO until after init. */ set_uart_gpios(UART_OFF); -- cgit v1.2.1