diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2017-04-17 11:33:37 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-01 21:54:10 -0700 |
commit | 95139fa58280335f302827d96154038a7c23e0c0 (patch) | |
tree | d70700fd3a01d2a215b680d43617ffe0b048387d /board/strago/board.c | |
parent | 86950ba929104de0e2ef2de34e4cd2f6064d4482 (diff) | |
download | chrome-ec-95139fa58280335f302827d96154038a7c23e0c0.tar.gz |
usb_port_power: Allow variable number of ports
Currently, usb_port_power_dumb allows fixed number of ports (2)
and usb_port_power_smart allows less than 4 ports. This change
removes the limitation and makes them accept variable number of
ports.
BUG=chromium:715178
BRANCH=none
TEST=Verified usbchargemode returns consistent charge_mode across
sysjumps on Electro.
Change-Id: I7675c65ba03d3e6f7f53b2fe48cbe510231d945a
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/481077
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/strago/board.c')
-rw-r--r-- | board/strago/board.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/strago/board.c b/board/strago/board.c index 6459488567..67e44be830 100644 --- a/board/strago/board.c +++ b/board/strago/board.c @@ -139,6 +139,11 @@ struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = { }, }; +const int usb_port_enable[CONFIG_USB_PORT_POWER_SMART_PORT_COUNT] = { + GPIO_USB1_ENABLE, + GPIO_USB2_ENABLE, +}; + /* * Temperature sensors data; must be in same order as enum temp_sensor_id. * Sensor index and name must match those present in coreboot: |