diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2016-06-01 16:23:30 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-06-02 14:06:53 -0700 |
commit | 54261224660e9deb980c8d39b74f144f01edf68a (patch) | |
tree | a794df2dc6bc10048ebc2f12be2b2efba5c40ef7 /board/amenia | |
parent | 4f600b32bbcdd1f870f8389b8666101d3a8513ed (diff) | |
download | chrome-ec-54261224660e9deb980c8d39b74f144f01edf68a.tar.gz |
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 <shawnn@chromium.org>
Change-Id: I936821481d6577e17e3e9c61ff97c037574d6923
Reviewed-on: https://chromium-review.googlesource.com/348950
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/amenia')
-rw-r--r-- | board/amenia/board.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/amenia/board.h b/board/amenia/board.h index b6117d23cd..d4dfd2b705 100644 --- a/board/amenia/board.h +++ b/board/amenia/board.h @@ -86,6 +86,7 @@ #define TCPC1_I2C_ADDR 0x16 #define CONFIG_USB_PD_TCPM_MUX #define CONFIG_USB_PD_TRY_SRC +#define CONFIG_USB_PD_VBUS_DETECT_GPIO #define CONFIG_USB_PORT_POWER_SMART #define GPIO_USB1_CTL1 GPIO_USB_CTL1 #define GPIO_USB1_CTL2 GPIO_UNIMPLEMENTED |