summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Huang <David.Huang@quantatw.com>2015-04-29 16:12:02 +0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-05 04:45:18 +0000
commitf2be1cc3ce1860a7b86e06faca9551532d502578 (patch)
tree2d7845386adba8c96444836365686d7b91ffb02d
parenta6e3d69aa1189fb05f56bcc0bb9cdf68e4f812aa (diff)
downloadchrome-ec-f2be1cc3ce1860a7b86e06faca9551532d502578.tar.gz
Gandof: Fix USB 3.0 port no function
Add USB control pin for Gandof. BRANCH=gandof BUG=chrome-os-partner:39641 TEST=Insert USB device to USB 3.0 port to check device function. Change-Id: I7e73fd5f086442da765a9d77d35717bff3b1b294 Signed-off-by: David Huang <David.Huang@quantatw.com> Reviewed-on: https://chromium-review.googlesource.com/267645 Reviewed-by: Mohammed Habibulla <moch@google.com> Commit-Queue: David Wu <david_wu@quantatw.com> Tested-by: David Wu <david_wu@quantatw.com>
-rw-r--r--board/gandof/board.h5
-rw-r--r--board/gandof/gpio.inc2
2 files changed, 6 insertions, 1 deletions
diff --git a/board/gandof/board.h b/board/gandof/board.h
index 44f6c4600c..cecec4e0c5 100644
--- a/board/gandof/board.h
+++ b/board/gandof/board.h
@@ -41,7 +41,10 @@
#define CONFIG_TEMP_SENSOR_G781
#define CONFIG_TEMP_SENSOR_POWER_GPIO GPIO_PP3300_DX_EN
#define CONFIG_UART_HOST 2
-#define CONFIG_USB_PORT_POWER_DUMB
+#define CONFIG_USB_PORT_POWER_IN_S3
+#define CONFIG_USB_PORT_POWER_SMART
+#define CONFIG_USB_PORT_POWER_SMART_DEFAULT_MODE USB_CHARGE_MODE_CDP
+#define CONFIG_USB_PORT_POWER_SMART_SIMPLE
#define CONFIG_VBOOT_HASH
#define CONFIG_WIRELESS
#define CONFIG_WIRELESS_SUSPEND \
diff --git a/board/gandof/gpio.inc b/board/gandof/gpio.inc
index f3a156782a..979b783687 100644
--- a/board/gandof/gpio.inc
+++ b/board/gandof/gpio.inc
@@ -76,6 +76,8 @@ GPIO(TOUCHSCREEN_RESET_L, N, 7, GPIO_OUT_LOW, NULL) /* Reset touch screen */
GPIO(EC_EDP_VDD_EN, J, 5, GPIO_OUT_LOW, NULL) /* Enable EDP (passthru from PCH) */
GPIO(LPC_CLKRUN_L, M, 2, GPIO_ODR_HIGH, NULL) /* Dunno. Probably important, though. */
+GPIO(USB_CTL1, E, 2, GPIO_OUT_LOW, NULL) /* USB control signal 1 to both ports */
+GPIO(USB_ILIM_SEL, E, 5, GPIO_OUT_LOW, NULL) /* USB current limit to both ports */
GPIO(USB1_ENABLE, E, 4, GPIO_OUT_LOW, NULL) /* USB port 1 output power enable */
GPIO(USB2_ENABLE, D, 5, GPIO_OUT_LOW, NULL) /* USB port 2 output power enable */