summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2022-09-09 12:51:55 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-14 00:48:42 +0000
commit0eb35ba594386e4d9dc8bc193b93de2ad33ce1ee (patch)
tree54c8235b488272f5b2491b532e1facaafde55605
parenta29d4c073748075504d1c86b97d63d2516c64622 (diff)
downloadchrome-ec-0eb35ba594386e4d9dc8bc193b93de2ad33ce1ee.tar.gz
brask: 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: Ia6bf6785cc2def57cbcd65eeb25565a15a5c1484 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3887966 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
-rw-r--r--baseboard/brask/usb_pd_policy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/baseboard/brask/usb_pd_policy.c b/baseboard/brask/usb_pd_policy.c
index 53e8052db1..0503415a9d 100644
--- a/baseboard/brask/usb_pd_policy.c
+++ b/baseboard/brask/usb_pd_policy.c
@@ -81,6 +81,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 */
@@ -225,3 +226,4 @@ const struct svdm_response svdm_rsp = {
.amode = NULL,
.exit_mode = NULL,
};
+#endif /* CONFIG_USB_PD_TBT_COMPAT_MODE */