]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/panel: simple: Allow DSI panels to provide mode flags
authorThierry Reding <treding@nvidia.com>
Fri, 14 Mar 2014 10:24:57 +0000 (11:24 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 4 Apr 2014 06:40:32 +0000 (08:40 +0200)
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>
drivers/gpu/drm/panel/panel-simple.c

index 5cf0a26d180e5fb7b57c115b854e03f08caf913f..4bdc55c25a3234b18568b4f117ce15fe7981e721 100644 (file)
@@ -400,6 +400,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;
 };
@@ -426,6 +427,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,
 };
@@ -456,6 +458,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;