mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
sunxi: video: HDMI: use correct bits for HSYNC and VSYNC polarity.
HSYNC is bit 8, and VSYNC is bit 9. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
This commit is contained in:
parent
db6b0281ec
commit
c7cb17e892
1 changed files with 2 additions and 2 deletions
|
@ -303,10 +303,10 @@ static int sunxi_dw_hdmi_enable(struct udevice *dev, int panel_bpp,
|
||||||
|
|
||||||
sunxi_dw_hdmi_lcdc_init(priv->mux, edid, panel_bpp);
|
sunxi_dw_hdmi_lcdc_init(priv->mux, edid, panel_bpp);
|
||||||
|
|
||||||
if (edid->flags & DISPLAY_FLAGS_HSYNC_LOW)
|
if (edid->flags & DISPLAY_FLAGS_VSYNC_LOW)
|
||||||
setbits_le32(&phy->pol, 0x200);
|
setbits_le32(&phy->pol, 0x200);
|
||||||
|
|
||||||
if (edid->flags & DISPLAY_FLAGS_VSYNC_LOW)
|
if (edid->flags & DISPLAY_FLAGS_HSYNC_LOW)
|
||||||
setbits_le32(&phy->pol, 0x100);
|
setbits_le32(&phy->pol, 0x100);
|
||||||
|
|
||||||
setbits_le32(&phy->ctrl, 0xf << 12);
|
setbits_le32(&phy->ctrl, 0xf << 12);
|
||||||
|
|
Loading…
Add table
Reference in a new issue