summaryrefslogtreecommitdiff
path: root/board/dirinboz
diff options
context:
space:
mode:
Diffstat (limited to 'board/dirinboz')
-rw-r--r--board/dirinboz/board.c18
-rw-r--r--board/dirinboz/gpio.inc1
2 files changed, 19 insertions, 0 deletions
diff --git a/board/dirinboz/board.c b/board/dirinboz/board.c
index aec8881bfe..f37586db7d 100644
--- a/board/dirinboz/board.c
+++ b/board/dirinboz/board.c
@@ -192,6 +192,24 @@ void pcal6408_interrupt(enum gpio_signal signal)
hook_call_deferred(&pcal6408_handler_data, 0);
}
+/*****************************************************************************
+ * Retimers
+ */
+
+static void retimers_on(void)
+{
+ /* hdmi retimer power on */
+ ioex_set_level(IOEX_EN_PWR_HDMI_DB, 1);
+}
+DECLARE_HOOK(HOOK_CHIPSET_RESUME, retimers_on, HOOK_PRIO_DEFAULT);
+
+static void retimers_off(void)
+{
+ /* hdmi retimer power off */
+ ioex_set_level(IOEX_EN_PWR_HDMI_DB, 0);
+}
+DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, retimers_off, HOOK_PRIO_DEFAULT);
+
static int board_ps8743_mux_set(const struct usb_mux *me,
mux_state_t mux_state)
{
diff --git a/board/dirinboz/gpio.inc b/board/dirinboz/gpio.inc
index d23414b1bc..eee5f4f761 100644
--- a/board/dirinboz/gpio.inc
+++ b/board/dirinboz/gpio.inc
@@ -85,6 +85,7 @@ IOEX(USB_A1_RETIMER_EN_OPT2, EXPIN(IOEX_HDMI_PCAL6408, 0, 0), GPIO_OUT_LOW) /* A
IOEX(EN_USB_A1_5V_DB_OPT2, EXPIN(IOEX_HDMI_PCAL6408, 0, 1), GPIO_OUT_LOW) /* A1 5V Source Enable */
IOEX(USB_A1_CHARGE_EN_DB_L_OPT2,EXPIN(IOEX_HDMI_PCAL6408, 0, 2), GPIO_OUT_HIGH) /* A1 5V High Current Enable */
IOEX(HDMI_DATA_EN_DB, EXPIN(IOEX_HDMI_PCAL6408, 0, 3), GPIO_OUT_HIGH) /* HDMI Retimer Enable */
+IOEX(EN_PWR_HDMI_DB, EXPIN(IOEX_HDMI_PCAL6408, 0, 5), GPIO_OUT_LOW) /* HDMI Retimer Power Enable */
/*
* The NPCX LPC driver configures and controls SCI, so PCH_SCI_ODL [PIN(7, 6)]