diff options
Diffstat (limited to 'board/trembyle/board.h')
-rw-r--r-- | board/trembyle/board.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/trembyle/board.h b/board/trembyle/board.h index b6facff8be..228b2e0330 100644 --- a/board/trembyle/board.h +++ b/board/trembyle/board.h @@ -181,6 +181,15 @@ static inline bool ec_config_has_mst_hub_rtd2141b(void) HAS_MST_HUB_RTD2141B); } +#define HAS_HDMI_CONN_HPD \ + (BIT(TREMBYLE_DB_T_OPT1_USBAC_HMDI)) + +static inline bool ec_config_has_hdmi_conn_hpd(void) +{ + return !!(BIT(ec_config_get_usb_db()) & + HAS_HDMI_CONN_HPD); +} + #define PORT_TO_HPD(port) ((port == 0) \ ? GPIO_USB_C0_HPD \ : (ec_config_has_usbc1_retimer_ps8802()) \ |