summaryrefslogtreecommitdiff
path: root/include/usb_pd_flags.h
Commit message (Collapse)AuthorAgeFilesLines
* Update license boilerplate text in source code filesMike Frysinger2022-09-121-1/+1
| | | | | | | | | | | | | | | Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BRANCH=none BUG=chromium:1098010 TEST=`repo upload` works Change-Id: Icd3a1723c20595356af83d190b2c6a9078b3013b Signed-off-by: Mike Frysinger <vapier@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891203 Reviewed-by: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
* pd: Fix wrong PD accessors handling in default caseŁukasz Hajec2022-01-241-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL fixes implementation added in commit 06d89b033065. Default return value from get_usb_pd_vbus_detect is USB_PD_VBUS_DETECT_NONE, which leads to executing parts of code, that earlier (before mentioned commit) were executed only when CONFIG_USB_PD_VBUS_DETECT_NONE was directly defined. Add additional enum value and return it for a default case when none of configs "CONFIG_USB_PD_VBUS_DETECT_*" is defined. BRANCH=None BUG=b:212683593 TEST=make BOARD=servo_v4p1 flash servo with new firmware plug servo into DUT (without charger) do not observe any problems, e.g hard reset loop Signed-off-by: Łukasz Hajec <lha@semihalf.com> Change-Id: Icf7028b8ba8a3e039a0c1e89de14ee0a4708df74 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3378345 Reviewed-by: Parth Malkan <parthmalkan@google.com> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Łukasz Hajec <hajec@google.com> Commit-Queue: Łukasz Hajec <hajec@google.com>
* SSFC: Framework to support two charger sourcesParth Malkan2021-09-241-0/+88
Many platforms have requirements to support more than one charge source (eg. pirika). It can't be supported by just enabling two different CONFIGS as that can lead to conflicts. Eg.USD_PD_VBUS_DETECT_TCPC vs USB_PD_VBUS_DETECT_DISCHARGE. This change provides a framework that supports two different charger sources in the same build. Please see the CL for relevant logs. BRANCH=None BUG=b:194375840 TEST=make -j buildall Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I309cc5930233983e615d90a4290fc749abf7aa2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088232 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>