diff options
author | Thierry Reding <treding@nvidia.com> | 2014-03-14 11:24:57 +0100 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2014-04-28 21:33:32 +0900 |
commit | 1efc0de6cfd9ad4aa0886e4408d3f7fefcc0ac94 (patch) | |
tree | ca0a2fe3d14ce2b91c3d9e9a40ade562e8faa11d | |
parent | dd3d94e5202d5334df290a6f1565449a25db11b0 (diff) | |
download | linux-3.10-1efc0de6cfd9ad4aa0886e4408d3f7fefcc0ac94.tar.gz linux-3.10-1efc0de6cfd9ad4aa0886e4408d3f7fefcc0ac94.tar.bz2 linux-3.10-1efc0de6cfd9ad4aa0886e4408d3f7fefcc0ac94.zip |
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>
Signed-off-by: Inki Ddae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/panel/panel-simple.c | 3 |
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 789c0793799..9f7024c6ec9 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 = { struct panel_desc_dsi { struct panel_desc desc; + unsigned long flags; enum mipi_dsi_pixel_format format; unsigned int lanes; }; @@ -451,6 +452,7 @@ static const struct panel_desc_dsi panasonic_vvx10f004b00 = { .height = 136, }, }, + .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE, .format = MIPI_DSI_FMT_RGB888, .lanes = 4, }; @@ -481,6 +483,7 @@ static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi) if (err < 0) return err; + dsi->mode_flags = desc->flags; dsi->format = desc->format; dsi->lanes = desc->lanes; |