Skip to content

Commit 656b759

Browse files
pcercueisravnborg
authored andcommitted
drm/panel: simple: Convert sharp,ls020b1dd01d from timings to videomode
Convert the Sharp LS020B1DD01D panel entry from using a struct display_timing to using a struct drm_display_mode, as display_timing seems to be the old and legacy format. Signed-off-by: Paul Cercueil <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent bdfd720 commit 656b759

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

drivers/gpu/drm/panel/panel-simple.c

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3398,22 +3398,24 @@ static const struct panel_desc sharp_lq123p1jx31 = {
33983398
},
33993399
};
34003400

3401-
static const struct display_timing sharp_ls020b1dd01d_timing = {
3402-
.pixelclock = { 2000000, 4200000, 5000000 },
3403-
.hactive = { 240, 240, 240 },
3404-
.hfront_porch = { 66, 66, 66 },
3405-
.hback_porch = { 1, 1, 1 },
3406-
.hsync_len = { 1, 1, 1 },
3407-
.vactive = { 160, 160, 160 },
3408-
.vfront_porch = { 52, 52, 52 },
3409-
.vback_porch = { 6, 6, 6 },
3410-
.vsync_len = { 10, 10, 10 },
3411-
.flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_LOW,
3401+
static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
3402+
{ /* 60 Hz */
3403+
.clock = 4200,
3404+
.hdisplay = 240,
3405+
.hsync_start = 240 + 66,
3406+
.hsync_end = 240 + 66 + 1,
3407+
.htotal = 240 + 66 + 1 + 1,
3408+
.vdisplay = 160,
3409+
.vsync_start = 160 + 52,
3410+
.vsync_end = 160 + 52 + 10,
3411+
.vtotal = 160 + 52 + 10 + 6,
3412+
.flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3413+
},
34123414
};
34133415

34143416
static const struct panel_desc sharp_ls020b1dd01d = {
3415-
.timings = &sharp_ls020b1dd01d_timing,
3416-
.num_timings = 1,
3417+
.modes = sharp_ls020b1dd01d_modes,
3418+
.num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
34173419
.bpc = 6,
34183420
.size = {
34193421
.width = 42,

0 commit comments

Comments
 (0)