From 490ceb734f4b3bd63552d3a195ac03e1ef21bd95 Mon Sep 17 00:00:00 2001 From: Vijay Hiremath Date: Mon, 15 Aug 2016 19:28:10 -0700 Subject: Reef: Enable smart power control to the device's USB ports BUG=chrome-os-partner:55377 BRANCH=none TEST=From the Kernel console, using 'ectool usbchargemode' & 'lsusb' commands verified that the USB devices are able to connect and disconnect from the system. Change-Id: I45059d9e4a4995ae87eb24459c66f0110cfb20ce Signed-off-by: Vijay Hiremath Reviewed-on: https://chromium-review.googlesource.com/361403 Commit-Ready: Vijay P Hiremath Tested-by: Vijay P Hiremath Reviewed-by: Shawn N --- board/reef/board.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/board/reef/board.h b/board/reef/board.h index d9a295bb7b..af609b3f72 100644 --- a/board/reef/board.h +++ b/board/reef/board.h @@ -36,6 +36,14 @@ #define CONFIG_CHARGER_NARROW_VDC #define CONFIG_USB_CHARGER +/* USB-A config */ +#define CONFIG_USB_PORT_POWER_SMART +#define CONFIG_USB_PORT_POWER_SMART_SIMPLE +#define GPIO_USB1_ENABLE GPIO_EN_USB_A_5V +#define GPIO_USB2_ENABLE GPIO_EN_USB_A_5V +#define GPIO_USB_ILIM_SEL GPIO_USB_A_CHARGE_EN_L +#define GPIO_USB_CTL1 GPIO_EN_PP5000 + /* USB PD config */ #define CONFIG_CASE_CLOSED_DEBUG_EXTERNAL #define CONFIG_USB_PD_ALT_MODE -- cgit v1.2.1