servo_v4: enable usb port by default
Set the USB mux and power enable to default to route
the USB3 port to the DUT and enable VBUS.
BRANCH=None
TEST=ensure that blue port works on power on.
Commit-Ready: Nick Sanders
Tested-by: Nick Sanders
@@ -286,6 +286,17 @@ static void init_uservo_port(void)
write_ioexpander(1, 0, 0);
}
+/* Enable blue USB port to DUT. */
+static void init_usb3_port(void)
+{
+ /* Write USB3.0_TYPEA_MUX_SEL */
+ write_ioexpander(0, 3, 1);
+ /* Write USB3.0_TYPEA_MUX_EN_L */
+ write_ioexpander(0, 4, 0);
+ /* Write USB3.0_TYPE_A_PWR_EN */
+ write_ioexpander(0, 5, 1);
+}
+
/* Enable all ioexpander outputs. */
static void init_ioexpander(void)
{
@@ -390,6 +401,7 @@ static void board_init(void)
/* Enable uservo USB by default. */
init_ioexpander();
init_uservo_port();
+ init_usb3_port();
/*
* Enable SBU mux. The polarity is set each time a new PD attach event
