From 54261224660e9deb980c8d39b74f144f01edf68a Mon Sep 17 00:00:00 2001 From: Shawn Nematbakhsh Date: Wed, 1 Jun 2016 16:23:30 -0700 Subject: cleanup: pd: Define VBUS detection source Previously CONFIG_USB_PD_TCPM_VBUS had two uses which were independent: - When operating as a TCPC, it indicated that the VBUS level should be tracked (through GPIO inputs) and sent to the external TCPM when appropriate. - When operating as a TCPM, it indicated that the VBUS level should be obtained by querying the TCPC. These two independent uses have been split into CONFIG_USB_PD_TCPC_TRACK_VBUS and CONFIG_USB_PD_VBUS_DETECT_TCPC, which sould be more clear. In addition, CONFIG_USB_PD_VBUS_DETECT_* CONFIGs have been added for other means of VBUS detection. BUG=chromium:616580 BRANCH=None TEST=Verify kevin continues to boot + charge. Signed-off-by: Shawn Nematbakhsh Change-Id: I936821481d6577e17e3e9c61ff97c037574d6923 Reviewed-on: https://chromium-review.googlesource.com/348950 Commit-Ready: Shawn N Tested-by: Shawn N Reviewed-by: Shawn N --- board/plankton/board.h | 1 + 1 file changed, 1 insertion(+) (limited to 'board/plankton') diff --git a/board/plankton/board.h b/board/plankton/board.h index 1c900d4851..749a3e8cd6 100644 --- a/board/plankton/board.h +++ b/board/plankton/board.h @@ -29,6 +29,7 @@ #define CONFIG_USB_PD_PORT_COUNT 1 #define CONFIG_USB_PD_TCPC #define CONFIG_USB_PD_TCPM_STUB +#define CONFIG_USB_PD_VBUS_DETECT_GPIO #define CONFIG_ADC #define CONFIG_HW_CRC #define CONFIG_I2C -- cgit v1.2.1