diff options
author | Vasily Khoruzhick <anarsoul@gmail.com> | 2018-05-14 13:49:53 -0700 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2018-05-15 08:03:42 +0200 |
commit | 1005e4e5f6b25c67064287268119e974c9cead22 (patch) | |
tree | 17329594e4f62b2ff0f1f4afc893897d73ace290 /drivers | |
parent | c7cb17e89295312263ec7904e32a118938c72d34 (diff) | |
download | u-boot-1005e4e5f6b25c67064287268119e974c9cead22.tar.gz u-boot-1005e4e5f6b25c67064287268119e974c9cead22.tar.bz2 u-boot-1005e4e5f6b25c67064287268119e974c9cead22.zip |
video: dw_hdmi: fix HSYNC and VSYNC polarity settings
Currently dw_hdmi configures HSYNC polarity using VSYNC setting from
EDID and vice versa. Fix it, since it breaks displays where HSYNC
and VSYNC polarity differs
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/dw_hdmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c index dbad0e2b24..229bd63c97 100644 --- a/drivers/video/dw_hdmi.c +++ b/drivers/video/dw_hdmi.c @@ -401,11 +401,11 @@ static void hdmi_av_composer(struct dw_hdmi *hdmi, /* set up hdmi_fc_invidconf */ inv_val = HDMI_FC_INVIDCONF_HDCP_KEEPOUT_INACTIVE; - inv_val |= (edid->flags & DISPLAY_FLAGS_HSYNC_HIGH ? + inv_val |= (edid->flags & DISPLAY_FLAGS_VSYNC_HIGH ? HDMI_FC_INVIDCONF_VSYNC_IN_POLARITY_ACTIVE_HIGH : HDMI_FC_INVIDCONF_VSYNC_IN_POLARITY_ACTIVE_LOW); - inv_val |= (edid->flags & DISPLAY_FLAGS_VSYNC_HIGH ? + inv_val |= (edid->flags & DISPLAY_FLAGS_HSYNC_HIGH ? HDMI_FC_INVIDCONF_HSYNC_IN_POLARITY_ACTIVE_HIGH : HDMI_FC_INVIDCONF_HSYNC_IN_POLARITY_ACTIVE_LOW); |