From a615f3c7d3787b8f7be9a82c292228ed26eda963 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Wed, 21 Mar 2018 15:51:47 -0600 Subject: yorp: Enabling power in both USB-A ports in S0 BRANCH=none BUG=b:74388692,b:75986973 TEST=build all Change-Id: Ief74b3e1a18ca90cb8fbf76c51780f659e4caf61 Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/974310 Reviewed-by: Furquan Shaikh --- board/yorp/board.c | 6 ++++++ board/yorp/board.h | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/board/yorp/board.c b/board/yorp/board.c index 903d1b7403..f42d5d2898 100644 --- a/board/yorp/board.c +++ b/board/yorp/board.c @@ -107,6 +107,12 @@ const struct i2c_port_t i2c_ports[] = { }; const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); +/* USB-A port configuration */ +const int usb_port_enable[USB_PORT_COUNT] = { + GPIO_EN_USB_A_5V, + /* TODO(b/74388692): Add second port control after hardware fix. */ +}; + /* Called by APL power state machine when transitioning from G3 to S5 */ static void chipset_pre_init(void) { diff --git a/board/yorp/board.h b/board/yorp/board.h index 44017047d5..f20bc387dc 100644 --- a/board/yorp/board.h +++ b/board/yorp/board.h @@ -75,7 +75,9 @@ #define CONFIG_BC12_DETECT_BQ24392 #define CONFIG_USB_PD_VBUS_MEASURE_ADC_EACH_PORT -/* TODO(b/74388692): Adding USB-A BC 1.2 charging support */ +/* USB-A Configuration */ +#define CONFIG_USB_PORT_POWER_DUMB +#define USB_PORT_COUNT 1 /* TODO(b/74388692): Make 2 after hardware fix. */ /* TODO(b/74244817): Use correct PD delay values */ #define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */ -- cgit v1.2.1