Waddledoo: Only set HDMI enable when HDMI DB is present
When HDMI DB isn't present, the HDMI enable line is the SCL line for DB
i2c and shouldn't be changed.
BRANCH=None
TEST=make -j buildall
@@ -157,12 +157,14 @@ DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);
/* Enable HDMI any time the SoC is on */
static void hdmi_enable(void)
{
+ if (get_cbi_fw_config_db() == DB_1A_HDMI)
gpio_set_level(GPIO_EC_I2C_SUB_C1_SCL_HDMI_EN_ODL, 0);
}
DECLARE_HOOK(HOOK_CHIPSET_STARTUP, hdmi_enable, HOOK_PRIO_DEFAULT);
static void hdmi_disable(void)
{
+ if (get_cbi_fw_config_db() == DB_1A_HDMI)
gpio_set_level(GPIO_EC_I2C_SUB_C1_SCL_HDMI_EN_ODL, 1);
}
DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, hdmi_disable, HOOK_PRIO_DEFAULT);
