aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-simple.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-03-14 06:24:57 -0400
committerThierry Reding <treding@nvidia.com>2014-04-04 03:06:39 -0400
commit462658b8b3bce3bf8cb158ef59ea88af54ac9277 (patch)
treeb8e5b068350a4d87f38a1be4b5e2f36178d4f0d8 /drivers/gpu/drm/panel/panel-simple.c
parent15c1a919ae9c0a474c9cf4816d164ced5444292d (diff)
drm/panel: simple: Allow DSI panels to provide mode flags
In order to differentiate between the different video modes (burst vs. non-burst, sync pulses vs. sync events) supported by peripherals, pass the flags that specify this mode in the panel description to the DSI peripheral device when probed. 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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 789c07937990..9f7024c6ec94 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -425,6 +425,7 @@ static struct platform_driver panel_simple_platform_driver = {
425struct panel_desc_dsi { 425struct panel_desc_dsi {
426 struct panel_desc desc; 426 struct panel_desc desc;
427 427
428 unsigned long flags;
428 enum mipi_dsi_pixel_format format; 429 enum mipi_dsi_pixel_format format;
429 unsigned int lanes; 430 unsigned int lanes;
430}; 431};
@@ -451,6 +452,7 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
451 .height = 136, 452 .height = 136,
452 }, 453 },
453 }, 454 },
455 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
454 .format = MIPI_DSI_FMT_RGB888, 456 .format = MIPI_DSI_FMT_RGB888,
455 .lanes = 4, 457 .lanes = 4,
456}; 458};
@@ -481,6 +483,7 @@ static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
481 if (err < 0) 483 if (err < 0)
482 return err; 484 return err;
483 485
486 dsi->mode_flags = desc->flags;
484 dsi->format = desc->format; 487 dsi->format = desc->format;
485 dsi->lanes = desc->lanes; 488 dsi->lanes = desc->lanes;
486 489