drm: bridge: dw-hdmi: fix ycbcr_420_allowed condition of RK3288

The version of RK3288 HDMI is 0x200a, it doesn't support ycbcr420 mode.

Change-Id: I65ee16ae79f42fd13514db8e5819db6d07db9d3d
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2017-10-25 17:14:04 +08:00
committed by Mark Yao
parent eb3761e409
commit 9156d7504c

View File

@@ -2989,7 +2989,7 @@ int dw_hdmi_bind(struct device *dev, struct device *master,
/* Unmask HPD, clear transitory interrupts, then unmute */
hdmi_writeb(hdmi, hdmi->phy_mask, HDMI_PHY_MASK0);
if (hdmi->dev_type == RK3288_HDMI && hdmi->version > 0x200a)
if (hdmi->dev_type == RK3288_HDMI && hdmi->version == 0x200a)
hdmi->connector.ycbcr_420_allowed = false;
else
hdmi->connector.ycbcr_420_allowed = true;