29f4fb78af0cdcc269161580ec4758326945d9df
[openwrt/staging/ansuel.git] /
1 From 0c47f057ef35b7f72e5f3a3dea94e9734ea0c10d Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 26 Apr 2024 17:50:15 +0100
4 Subject: [PATCH 1069/1085] drm/panel-simple: Fix 7inch panel mode for
5 misalignment
6
7 The 7inch panel is one line off the screen both horizontally
8 and vertically.
9
10 Alter the panel mode to correct this.
11
12 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
13 ---
14 drivers/gpu/drm/panel/panel-simple.c | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17 --- a/drivers/gpu/drm/panel/panel-simple.c
18 +++ b/drivers/gpu/drm/panel/panel-simple.c
19 @@ -3420,11 +3420,11 @@ static const struct drm_display_mode ras
20 .hdisplay = 800,
21 .hsync_start = 800 + 59,
22 .hsync_end = 800 + 59 + 2,
23 - .htotal = 800 + 59 + 2 + 46,
24 + .htotal = 800 + 59 + 2 + 45,
25 .vdisplay = 480,
26 .vsync_start = 480 + 7,
27 .vsync_end = 480 + 7 + 2,
28 - .vtotal = 480 + 7 + 2 + 21,
29 + .vtotal = 480 + 7 + 2 + 22,
30 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
31 };
32