summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2018-07-31 14:24:32 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-08-24 22:16:55 -0700
commit69908839c7e52fd3c855b2ba1cc849282a1f5412 (patch)
tree2cb5ebc2231d606826999efa5367dd8c5fd89be4
parentec345092dd8d98d491c28c7d60d9edd2bd61d920 (diff)
downloadchrome-ec-69908839c7e52fd3c855b2ba1cc849282a1f5412.tar.gz
cheza: Use BC1.2 to detect VBUS present
There are several ways to detect VBUS present. Using the BC1.2 to detect is through a GPIO. It is more effective than talking to the TCPC chip over I2C comm. Change the config from CONFIG_USB_PD_VBUS_DETECT_TCPC to CONFIG_USB_PD_VBUS_DETECT_CHARGER. BRANCH=none BUG=b:112179392 TEST=Plugged and unplugged charger to port-0 and port-1. Verified the charging state correct. Change-Id: I9dd69cd17099b5794988efca9d8c7a82af3614a5 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/1170126 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
-rw-r--r--board/cheza/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/cheza/board.h b/board/cheza/board.h
index 9ab1fef92c..cb3c9c331b 100644
--- a/board/cheza/board.h
+++ b/board/cheza/board.h
@@ -99,7 +99,7 @@
#define CONFIG_USB_PD_TCPM_MUX
#define CONFIG_USB_PD_TCPM_TCPCI
#define CONFIG_USB_PD_TRY_SRC
-#define CONFIG_USB_PD_VBUS_DETECT_TCPC
+#define CONFIG_USB_PD_VBUS_DETECT_CHARGER
#define CONFIG_USB_PD_VBUS_MEASURE_NOT_PRESENT
#define CONFIG_USB_PD_5V_EN_CUSTOM
#define CONFIG_USBC_PPC_SN5S330