summaryrefslogtreecommitdiff
path: root/board/morphius/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/morphius/board.h')
-rw-r--r--board/morphius/board.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/morphius/board.h b/board/morphius/board.h
index 41aca10514..dbba5510f8 100644
--- a/board/morphius/board.h
+++ b/board/morphius/board.h
@@ -182,6 +182,15 @@ static inline bool ec_config_has_mst_hub_rtd2141b(void)
HAS_MST_HUB_RTD2141B);
}
+#define HAS_HDMI_CONN_HPD \
+ (BIT(MORPHIUS_DB_T_OPT1_USBC_HDMI))
+
+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()) \