aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/sunxi/sunxi_display.c
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@micronovasrl.com>2018-01-16 17:43:48 +0100
committerJagan Teki <jagan@amarulasolutions.com>2018-01-22 13:53:08 +0530
commit3900b45125dea0476c03f413ec80201865bfde70 (patch)
tree55cb7042c1b8fadedc983750e3acd8742d85527d /drivers/video/sunxi/sunxi_display.c
parent557767ed29968af0294e3aae48433e5d5a298e0b (diff)
downloadu-boot-3900b45125dea0476c03f413ec80201865bfde70.zip
u-boot-3900b45125dea0476c03f413ec80201865bfde70.tar.gz
u-boot-3900b45125dea0476c03f413ec80201865bfde70.tar.bz2
sunxi: Fix display timing flags
flags member of struct timing was not initialized, this took to unpredictable behaviour of display flags, such DISPLAY_FLAGS_HSYNC_HIGH instead of _LOW etc. Init timing->flags = 0 Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers/video/sunxi/sunxi_display.c')
-rw-r--r--drivers/video/sunxi/sunxi_display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c
index 0630289..f191ef1 100644
--- a/drivers/video/sunxi/sunxi_display.c
+++ b/drivers/video/sunxi/sunxi_display.c
@@ -625,6 +625,8 @@ static void sunxi_ctfb_mode_to_display_timing(const struct ctfb_res_modes *mode,
timing->vback_porch.typ = mode->upper_margin;
timing->vsync_len.typ = mode->vsync_len;
+ timing->flags = 0;
+
if (mode->sync & FB_SYNC_HOR_HIGH_ACT)
timing->flags |= DISPLAY_FLAGS_HSYNC_HIGH;
else