aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-simple.c
diff options
context:
space:
mode:
authorMarc Dietrich <marvin24@gmx.de>2013-12-21 15:38:12 -0500
committerThierry Reding <treding@nvidia.com>2014-01-08 10:12:33 -0500
commit6d54e3d275de861c0290c85fec8c0ed6deaf6ad5 (patch)
tree6607daafdee63c954f00814f10a8dbc1e2d60094 /drivers/gpu/drm/panel/panel-simple.c
parent81239c6f7972d4909a6862d08ed1d2943983ffd4 (diff)
drm/panel: Add support for Samsung LTN101NT05 panel
The Samsung LNT101NT05 10.1" WXVGA panel can be supported by the simple panel driver. Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: David Airlie <airlied@linux.ie> Signed-off-by: Marc Dietrich <marvin24@gmx.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.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 3e611afc93f4..a2d5e3f1205e 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -338,6 +338,28 @@ static const struct panel_desc chunghwa_claa101wb01 = {
338 }, 338 },
339}; 339};
340 340
341static const struct drm_display_mode samsung_ltn101nt05_mode = {
342 .clock = 54030,
343 .hdisplay = 1024,
344 .hsync_start = 1024 + 24,
345 .hsync_end = 1024 + 24 + 136,
346 .htotal = 1024 + 24 + 136 + 160,
347 .vdisplay = 600,
348 .vsync_start = 600 + 3,
349 .vsync_end = 600 + 3 + 6,
350 .vtotal = 600 + 3 + 6 + 61,
351 .vrefresh = 60,
352};
353
354static const struct panel_desc samsung_ltn101nt05 = {
355 .modes = &samsung_ltn101nt05_mode,
356 .num_modes = 1,
357 .size = {
358 .width = 1024,
359 .height = 600,
360 },
361};
362
341static const struct of_device_id platform_of_match[] = { 363static const struct of_device_id platform_of_match[] = {
342 { 364 {
343 .compatible = "auo,b101aw03", 365 .compatible = "auo,b101aw03",
@@ -346,6 +368,9 @@ static const struct of_device_id platform_of_match[] = {
346 .compatible = "chunghwa,claa101wb01", 368 .compatible = "chunghwa,claa101wb01",
347 .data = &chunghwa_claa101wb01 369 .data = &chunghwa_claa101wb01
348 }, { 370 }, {
371 .compatible = "samsung,ltn101nt05",
372 .data = &samsung_ltn101nt05,
373 }, {
349 .compatible = "simple-panel", 374 .compatible = "simple-panel",
350 }, { 375 }, {
351 /* sentinel */ 376 /* sentinel */