stmfb uses custom flags FB_SYNC_DE_HIGH_ACT and FB_SYNC_CLK_INVERT. These have generic counterparts in display_flags. Honor them aswell. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- drivers/video/stm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/video/stm.c b/drivers/video/stm.c index 3d64238..f0f5ce0 100644 --- a/drivers/video/stm.c +++ b/drivers/video/stm.c @@ -449,9 +449,11 @@ static int stmfb_activate_var(struct fb_info *fb_info) reg |= VDCTRL0_HSYNC_POL; if (mode->sync & FB_SYNC_VERT_HIGH_ACT) reg |= VDCTRL0_VSYNC_POL; - if (mode->sync & FB_SYNC_DE_HIGH_ACT) + if (mode->sync & FB_SYNC_DE_HIGH_ACT || + mode->display_flags & DISPLAY_FLAGS_DE_LOW) reg |= VDCTRL0_ENABLE_POL; - if (mode->sync & FB_SYNC_CLK_INVERT) + if (mode->sync & FB_SYNC_CLK_INVERT || + mode->display_flags & DISPLAY_FLAGS_PIXDATA_NEGEDGE) reg |= VDCTRL0_DOTCLK_POL; reg |= SET_VSYNC_PULSE_WIDTH(mode->vsync_len); -- 2.1.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox