diff options
Diffstat (limited to 'board/berknip/board.h')
-rw-r--r-- | board/berknip/board.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/berknip/board.h b/board/berknip/board.h index e9ab9e1a9e..8cd07fee84 100644 --- a/board/berknip/board.h +++ b/board/berknip/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(BERKNIP_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()) \ |