diff options
Diffstat (limited to 'baseboard/zork/baseboard.c')
-rw-r--r-- | baseboard/zork/baseboard.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/baseboard/zork/baseboard.c b/baseboard/zork/baseboard.c index 204a133f32..703e188024 100644 --- a/baseboard/zork/baseboard.c +++ b/baseboard/zork/baseboard.c @@ -329,6 +329,12 @@ void board_hibernate(void) } } +__overridable int check_hdmi_hpd_status(void) +{ + /* Default hdmi insert. */ + return 1; +} + const struct pi3hdx1204_tuning pi3hdx1204_tuning = { .eq_ch0_ch1_offset = PI3HDX1204_EQ_DB710, .eq_ch2_ch3_offset = PI3HDX1204_EQ_DB710, @@ -336,11 +342,11 @@ const struct pi3hdx1204_tuning pi3hdx1204_tuning = { .de_offset = PI3HDX1204_DE_DB_MINUS5, }; -static void pi3hdx1204_retimer_power(void) +void pi3hdx1204_retimer_power(void) { if (ec_config_has_hdmi_retimer_pi3hdx1204()) { int enable = chipset_in_or_transitioning_to_state( - CHIPSET_STATE_ON); + CHIPSET_STATE_ON) && check_hdmi_hpd_status(); pi3hdx1204_enable(I2C_PORT_TCPC1, PI3HDX1204_I2C_ADDR_FLAGS, enable); |