Skip to content

Commit

Permalink
drm/panel: simple: Allow DSI panels to provide mode flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding committed Apr 4, 2014
1 parent 15c1a91 commit 462658b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/panel/panel-simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -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,
};
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 462658b

Please sign in to comment.