summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge/dw_hdmi.c
diff options
context:
space:
mode:
authorAndy Yan <andy.yan@rock-chips.com>2014-12-05 14:31:53 +0800
committerPhilipp Zabel <p.zabel@pengutronix.de>2015-01-07 18:31:59 +0100
commitd346c14eeea97898bb55e3432ca391cc05ceabe7 (patch)
tree448bc2d7665ca08c6987baa0da3261b866d052d6 /drivers/gpu/drm/bridge/dw_hdmi.c
parenta4d3b8b050d5dbd61f7baeb249e702bc0a75f981 (diff)
downloadblackbird-op-linux-d346c14eeea97898bb55e3432ca391cc05ceabe7.tar.gz
blackbird-op-linux-d346c14eeea97898bb55e3432ca391cc05ceabe7.zip
drm: bridge/dw_hdmi: add function dw_hdmi_phy_enable_spare
RK3288 HDMI will not work without the spare bit of HDMI_PHY_CONF0 enable Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Tested-by: Russell King <rmk+kernel@arm.linux.org.uk> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/bridge/dw_hdmi.c')
-rw-r--r--drivers/gpu/drm/bridge/dw_hdmi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c
index d39dccd41e5a..3a97c8419d4f 100644
--- a/drivers/gpu/drm/bridge/dw_hdmi.c
+++ b/drivers/gpu/drm/bridge/dw_hdmi.c
@@ -713,6 +713,13 @@ static void dw_hdmi_phy_enable_tmds(struct dw_hdmi *hdmi, u8 enable)
HDMI_PHY_CONF0_ENTMDS_MASK);
}
+static void dw_hdmi_phy_enable_spare(struct dw_hdmi *hdmi, u8 enable)
+{
+ hdmi_mask_writeb(hdmi, enable, HDMI_PHY_CONF0,
+ HDMI_PHY_CONF0_SPARECTRL_OFFSET,
+ HDMI_PHY_CONF0_SPARECTRL_MASK);
+}
+
static void dw_hdmi_phy_gen2_pddq(struct dw_hdmi *hdmi, u8 enable)
{
hdmi_mask_writeb(hdmi, enable, HDMI_PHY_CONF0,
OpenPOWER on IntegriCloud