drm/panel: st7701: Swap vertical front and back porch timings
authorJagan Teki <jagan@amarulasolutions.com>
Sun, 12 May 2019 18:48:27 +0000 (00:18 +0530)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 25 May 2019 06:58:18 +0000 (08:58 +0200)
Vertical front and back porch values on existing driver are swapped.
The existing timings are still working as expected, but to make sure
it can compatible with techstar ts8550b bsp timings this patch swap
the same values.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190512184827.13905-1-jagan@amarulasolutions.com
drivers/gpu/drm/panel/panel-sitronix-st7701.c

index 63f9a1c7fb1bedb51b3bbc6c2e518b39a417511d..09c5d9a6f9fa8a169e5e16f54b68fb757eeecf8c 100644 (file)
@@ -305,9 +305,9 @@ static const struct drm_display_mode ts8550b_mode = {
        .htotal         = 480 + 38 + 12 + 12,
 
        .vdisplay       = 854,
-       .vsync_start    = 854 + 4,
-       .vsync_end      = 854 + 4 + 8,
-       .vtotal         = 854 + 4 + 8 + 18,
+       .vsync_start    = 854 + 18,
+       .vsync_end      = 854 + 18 + 8,
+       .vtotal         = 854 + 18 + 8 + 4,
 
        .width_mm       = 69,
        .height_mm      = 139,