Add DE2 vsync polarity fix to u-boot
This commit is contained in:
parent
4768b7f4bb
commit
7317d3f5bb
@ -0,0 +1,25 @@
|
||||
diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c
|
||||
index 33920a2b67..4f01d1bded 100644
|
||||
--- a/drivers/video/sunxi/sunxi_dw_hdmi.c
|
||||
+++ b/drivers/video/sunxi/sunxi_dw_hdmi.c
|
||||
@@ -304,15 +304,11 @@ static int sunxi_dw_hdmi_enable(struct udevice *dev, int panel_bpp,
|
||||
|
||||
sunxi_dw_hdmi_lcdc_init(priv->mux, edid, panel_bpp);
|
||||
|
||||
- /*
|
||||
- * Condition in original code is a bit weird. This is attempt
|
||||
- * to make it more reasonable and it works. It could be that
|
||||
- * bits and conditions are related and should be separated.
|
||||
- */
|
||||
- if (!((edid->flags & DISPLAY_FLAGS_HSYNC_HIGH) &&
|
||||
- (edid->flags & DISPLAY_FLAGS_VSYNC_HIGH))) {
|
||||
- setbits_le32(&phy->pol, 0x300);
|
||||
- }
|
||||
+ if (edid->flags & DISPLAY_FLAGS_HSYNC_LOW)
|
||||
+ setbits_le32(&phy->pol, 0x200);
|
||||
+
|
||||
+ if (edid->flags & DISPLAY_FLAGS_VSYNC_LOW)
|
||||
+ setbits_le32(&phy->pol, 0x100);
|
||||
|
||||
setbits_le32(&phy->ctrl, 0xf << 12);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user