diff options
author | Parth Malkan <parthmalkan@google.com> | 2021-08-10 21:54:59 +0000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-09-24 22:54:51 +0000 |
commit | 06d89b033065d9c96f4a6e53129b22b912fae224 (patch) | |
tree | 34c7038c6fe35b915db34d42aa7112be5a5e095f /include/config.h | |
parent | d4938b281fede972db577180efb791a47c47140b (diff) | |
download | chrome-ec-06d89b033065d9c96f4a6e53129b22b912fae224.tar.gz |
SSFC: Framework to support two charger sources
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>
Diffstat (limited to 'include/config.h')
-rw-r--r-- | include/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index f74c9f82c9..5c0975c713 100644 --- a/include/config.h +++ b/include/config.h @@ -4236,6 +4236,13 @@ #undef CONFIG_USB_PD_DEBUG_LEVEL /* + * Define if this board is using runtime flags instead of build time configs + * to control USB PD properties. + */ +#define CONFIG_USB_PD_FLAGS +#undef CONFIG_USB_PD_RUNTIME_FLAGS + +/* * Define if this board can enable VBUS discharge (eg. through a GPIO-controlled * discharge circuit, or through port controller registers) to discharge VBUS * rapidly on disconnect. Will be defined automatically when one of the below |