We now have four ways of detecting VBUS:
- Through TCPC (CONFIG_USB_PD_TCPM_VBUS)
- Through charger DC input pins (need at least one input per port)
- Through regular interrupt-enabled GPIOs (no define)
- None, for special devices only (CONFIG_USB_PD_NO_VBUS_DETECT)
Let's add a define for each case, and enforce the selection of only one of them:
+#undef CONFIG_USB_PD_VBUS_DETECT_TCPC
+#undef CONFIG_USB_PD_VBUS_DETECT_CHARGER
+#undef CONFIG_USB_PD_VBUS_DETECT_GPIO
+#undef CONFIG_USB_PD_VBUS_DETECT_NONE
Comment 1 by sha...@chromium.org
, Jun 1 2016