summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2017-02-24 10:26:35 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-02-25 14:23:20 -0800
commit9619578ad20a2a4c9ed500e53227fab6158e41d0 (patch)
tree474509e7777115d79981151cebc31dc08f6f83e0
parent23bc38414ade30fb3e72ae8beefb657b47ca8288 (diff)
downloadchrome-ec-9619578ad20a2a4c9ed500e53227fab6158e41d0.tar.gz
eve: Disable TCPC low power
Until we can understand and fix the reset loop when we enable low power for the TCPC mux lets just disable that feature. BUG=chrome-os-partner:63204 BRANCH=none TEST=build and boot on eve, verify that TCPC does not get in a reset loop when the system is off. Change-Id: I646948066a76ab25758e437498f3fb7f533ba6a5 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://chromium-review.googlesource.com/446592 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
-rw-r--r--board/eve/board.h3
-rw-r--r--board/eve/gpio.inc5
2 files changed, 7 insertions, 1 deletions
diff --git a/board/eve/board.h b/board/eve/board.h
index 5097acbd6b..4e03e92597 100644
--- a/board/eve/board.h
+++ b/board/eve/board.h
@@ -152,7 +152,8 @@
#define CONFIG_USB_PD_PORT_COUNT 2
#define CONFIG_USB_PD_QUIRK_SLOW_CC_STATUS
#define CONFIG_USB_PD_VBUS_DETECT_CHARGER
-#define CONFIG_USB_PD_TCPC_LOW_POWER
+/* TODO: re-enable after fixing issue 63204 */
+/*#define CONFIG_USB_PD_TCPC_LOW_POWER*/
#define CONFIG_USB_PD_TCPM_MUX
#define CONFIG_USB_PD_TCPM_ANX74XX
#define CONFIG_USB_PD_TCPM_TCPCI
diff --git a/board/eve/gpio.inc b/board/eve/gpio.inc
index 87fc3b3929..f994ccb856 100644
--- a/board/eve/gpio.inc
+++ b/board/eve/gpio.inc
@@ -23,8 +23,13 @@ GPIO_INT(VOLUME_UP_L, PIN(8, 2), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt
GPIO_INT(WP_L, PIN(4, 0), GPIO_INT_BOTH, switch_interrupt)
GPIO_INT(AC_PRESENT, PIN(C, 1), GPIO_INT_BOTH, extpower_interrupt)
GPIO_INT(ACCELGYRO3_INT_L, PIN(9, 3), GPIO_INT_FALLING, bmi160_interrupt)
+#ifdef CONFIG_USB_PD_TCPC_LOW_POWER
GPIO_INT(USB_C0_CABLE_DET, PIN(D, 2), GPIO_INT_RISING, anx74xx_cable_det_interrupt)
GPIO_INT(USB_C1_CABLE_DET, PIN(D, 3), GPIO_INT_RISING, anx74xx_cable_det_interrupt)
+#else
+GPIO(USB_C0_CABLE_DET, PIN(D, 2), GPIO_INPUT)
+GPIO(USB_C1_CABLE_DET, PIN(D, 3), GPIO_INPUT)
+#endif
/* Lid KCJX9 accelerometer sensor interrupt */
GPIO(ACCEL1_INT_L, PIN(C, 7), GPIO_INPUT | GPIO_PULL_UP)