Skip to content
Snippets Groups Projects
Commit 6ae2c308 authored by Archit Taneja's avatar Archit Taneja Committed by Vinod Koul
Browse files

drm/msm/hdmi: Keep the HDMI_CTRL_ENABLE bitfield always on


The ENABLE field in REG_HDMI_CTRL is required to be set to detect hot plug
events on 8x96. We don't get any HPD interrupts when HDMI bridge is
disabled.

Keep it always on. Downstream also seems to do the same thing. Restrict
this quirk only to 8x96, since we're not entirely sure whether this is
a legitimate fix or not.

Signed-off-by: default avatarArchit Taneja <architt@codeaurora.org>
parent 98ed12f9
No related merge requests found
......@@ -31,6 +31,8 @@ void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on)
}
} else {
ctrl = HDMI_CTRL_HDMI;
if (hdmi->config->keep_ctrl_on)
ctrl |= HDMI_CTRL_ENABLE;
}
hdmi_write(hdmi, REG_HDMI_CTRL, ctrl);
......@@ -402,6 +404,7 @@ static struct hdmi_platform_config hdmi_tx_8974_config = {
HDMI_CFG(pwr_clk, 8x74),
HDMI_CFG(hpd_clk, 8x74),
.hpd_freq = hpd_clk_freq_8x74,
.keep_ctrl_on = true,
};
/*
......
......@@ -105,6 +105,9 @@ struct hdmi_platform_config {
/* clks that need to be on for screen pwr (ie pixel clk): */
const char **pwr_clk_names;
int pwr_clk_cnt;
/* caps, etc. */
bool keep_ctrl_on;
};
struct hdmi_bridge {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment