aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-simple.c
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2014-05-15 06:25:47 -0400
committerThierry Reding <treding@nvidia.com>2014-06-05 10:46:39 -0400
commitfff5de45ef82f12918d6558a07cdf27cdce7e3d9 (patch)
treee874e1ecf95033aaa7175f7f45908e6c77986ac9 /drivers/gpu/drm/panel/panel-simple.c
parentdbd751eed83614b7300a0331ae3ab2e70cc1e73c (diff)
drm/panel: Add support for EDT ETM0700G0DH6 and ET070080DH6 panels
The EDT ETM0700G0DH6 and ET070080DH6 are 7" 800x480 panels, which can be supported by the simple panel driver. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/panel/panel-simple.c')
-rw-r--r--drivers/gpu/drm/panel/panel-simple.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 309f29e9234a..72da48cce7e4 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -328,6 +328,29 @@ static const struct panel_desc chunghwa_claa101wb01 = {
328 }, 328 },
329}; 329};
330 330
331static const struct drm_display_mode edt_etm0700g0dh6_mode = {
332 .clock = 33260,
333 .hdisplay = 800,
334 .hsync_start = 800 + 40,
335 .hsync_end = 800 + 40 + 128,
336 .htotal = 800 + 40 + 128 + 88,
337 .vdisplay = 480,
338 .vsync_start = 480 + 10,
339 .vsync_end = 480 + 10 + 2,
340 .vtotal = 480 + 10 + 2 + 33,
341 .vrefresh = 60,
342 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
343};
344
345static const struct panel_desc edt_etm0700g0dh6 = {
346 .modes = &edt_etm0700g0dh6_mode,
347 .num_modes = 1,
348 .size = {
349 .width = 152,
350 .height = 91,
351 },
352};
353
331static const struct drm_display_mode lg_lp129qe_mode = { 354static const struct drm_display_mode lg_lp129qe_mode = {
332 .clock = 285250, 355 .clock = 285250,
333 .hdisplay = 2560, 356 .hdisplay = 2560,
@@ -383,6 +406,12 @@ static const struct of_device_id platform_of_match[] = {
383 .compatible = "chunghwa,claa101wb01", 406 .compatible = "chunghwa,claa101wb01",
384 .data = &chunghwa_claa101wb01 407 .data = &chunghwa_claa101wb01
385 }, { 408 }, {
409 .compatible = "edt,et070080dh6",
410 .data = &edt_etm0700g0dh6,
411 }, {
412 .compatible = "edt,etm0700g0dh6",
413 .data = &edt_etm0700g0dh6,
414 }, {
386 .compatible = "lg,lp129qe", 415 .compatible = "lg,lp129qe",
387 .data = &lg_lp129qe, 416 .data = &lg_lp129qe,
388 }, { 417 }, {