brya: Config-guard TBT UFP code
Only build Thunderbolt UFP config for boards that support Thunderbolt.
Reduce code size and avoid linker errors.
TEST=make buildall
BRANCH=none
Code-Coverage: Zoss
@@ -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 */
@@ -241,3 +242,4 @@ const struct svdm_response svdm_rsp = {
.amode = NULL,
.exit_mode = NULL,
};
+#endif /* CONFIG_USB_PD_TBT_COMPAT_MODE */
