diff options
-rw-r--r-- | board/berknip/board.c | 18 | ||||
-rw-r--r-- | board/berknip/gpio.inc | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/board/berknip/board.c b/board/berknip/board.c index 227ef3b38c..4d9d8f4166 100644 --- a/board/berknip/board.c +++ b/board/berknip/board.c @@ -153,6 +153,24 @@ const struct mft_t mft_channels[] = { }; BUILD_ASSERT(ARRAY_SIZE(mft_channels) == MFT_CH_COUNT); +/***************************************************************************** + * Retimers + */ + +static void retimers_on(void) +{ + /* hdmi retimer power on */ + ioex_set_level(IOEX_HDMI_POWER_EN_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_HDMI_POWER_EN_DB, 0); +} +DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, retimers_off, HOOK_PRIO_DEFAULT); + /* * USB C0 port SBU mux use standalone PI3USB221 * chip and it need a board specific driver. diff --git a/board/berknip/gpio.inc b/board/berknip/gpio.inc index 4ab8379559..df0f4c965c 100644 --- a/board/berknip/gpio.inc +++ b/board/berknip/gpio.inc @@ -78,6 +78,7 @@ IOEX(USB_C0_SBU_FLIP, EXPIN(USBC_PORT_C0, 1, 7), GPIO_OUT_LOW) /* C0 SBU Flip * IOEX(USB_A1_RETIMER_EN, EXPIN(USBC_PORT_C1, 0, 0), GPIO_OUT_LOW) /* A1 Retimer Enable */ IOEX(USB_A1_RETIMER_RST_DB, EXPIN(USBC_PORT_C1, 0, 1), GPIO_OUT_LOW) /* A1 Retimer Reset */ IOEX(USB_C1_HPD_IN_DB, EXPIN(USBC_PORT_C1, 0, 2), GPIO_OUT_LOW) /* C1 HPD */ +IOEX(HDMI_POWER_EN_DB, EXPIN(USBC_PORT_C1, 0, 3), GPIO_OUT_LOW) /* HDMI retimer power enable */ IOEX(USB_C1_TCPC_FASTSW_CTL_EN, EXPIN(USBC_PORT_C1, 0, 4), GPIO_OUT_LOW) /* C1 FastSwitch Control */ IOEX(USB_C1_MUX_RST_DB, EXPIN(USBC_PORT_C1, 1, 1), GPIO_OUT_LOW) /* C1 Mux Reset */ IOEX(USB_C1_SBU_FAULT_DB_ODL, EXPIN(USBC_PORT_C1, 1, 2), GPIO_INPUT) /* C1 SBU Fault */ |