summaryrefslogtreecommitdiff
path: root/board/trembyle/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/trembyle/board.h')
-rw-r--r--board/trembyle/board.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/trembyle/board.h b/board/trembyle/board.h
index 5af5ef98bb..b6facff8be 100644
--- a/board/trembyle/board.h
+++ b/board/trembyle/board.h
@@ -172,6 +172,15 @@ static inline bool ec_config_has_hdmi_retimer_pi3hdx1204(void)
HAS_HDMI_RETIMER_PI3HDX1204);
}
+#define HAS_MST_HUB_RTD2141B \
+ (BIT(TREMBYLE_DB_T_OPT3_USBAC_HDMI_MSTHUB))
+
+static inline bool ec_config_has_mst_hub_rtd2141b(void)
+{
+ return !!(BIT(ec_config_get_usb_db()) &
+ HAS_MST_HUB_RTD2141B);
+}
+
#define PORT_TO_HPD(port) ((port == 0) \
? GPIO_USB_C0_HPD \
: (ec_config_has_usbc1_retimer_ps8802()) \