drm: bridge/dw_hdmi: check is_hdmi2 in hdmi_config_AVI
authorZheng Yang <zhengyang@rock-chips.com>
Mon, 27 Mar 2017 03:32:45 +0000 (11:32 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 29 Mar 2017 02:50:04 +0000 (10:50 +0800)
commitae25660f354015b765d824a686875a0e5757ed9f
treee51fc50a5d647ba89e64724a7978b17936edde59
parentd4686ea76bd19b81ed89184f9cc401da36a9573f
drm: bridge/dw_hdmi: check is_hdmi2 in hdmi_config_AVI

If a display support HDMI2.0, it must support SCDC or YCbCr420.
So we check the connector->scdc_present and mode->flags to
check the connected display is HDMI 2.0.

Change-Id: I3b868d43791089fcdef77f99ec90396553008b9a
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
drivers/gpu/drm/bridge/dw-hdmi.c