diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2022-09-09 12:49:41 -0600 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-09-14 00:48:19 +0000 |
commit | 92f88cc848c1ce13c23fba08572677b0a34dff6f (patch) | |
tree | efbc3c4bbc316c131c6d79ad03bba724f5f069d6 | |
parent | f12926260695c119648c097c58c99a2c387d9136 (diff) | |
download | chrome-ec-92f88cc848c1ce13c23fba08572677b0a34dff6f.tar.gz |
volteer: Config-guard TBT UFP code
Only build Thunderbolt UFP config for boards that support Thunderbolt.
Reduce code size and avoid linker errors.
BUG=b:244467636
TEST=make buildall
BRANCH=none
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Change-Id: I31b6ff121663a73e46e1eddace59dbb14140ef55
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3887964
Reviewed-by: Keith Short <keithshort@chromium.org>
-rw-r--r-- | baseboard/volteer/usb_pd_policy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/baseboard/volteer/usb_pd_policy.c b/baseboard/volteer/usb_pd_policy.c index 0c843b7078..81e02b769f 100644 --- a/baseboard/volteer/usb_pd_policy.c +++ b/baseboard/volteer/usb_pd_policy.c @@ -74,6 +74,7 @@ int board_vbus_source_enabled(int port) return ppc_is_sourcing_vbus(port); } +#ifdef CONFIG_USB_PD_TBT_COMPAT_MODE /* ----------------- Vendor Defined Messages ------------------ */ /* Responses specifically for the enablement of TBT mode in the role of UFP */ @@ -218,3 +219,4 @@ const struct svdm_response svdm_rsp = { .amode = NULL, .exit_mode = NULL, }; +#endif /* CONFIG_USB_PD_TBT_COMPAT_MODE */ |