diff options
author | Archit Taneja <archit@ti.com> | 2011-09-08 09:12:16 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-09-30 09:16:29 -0400 |
commit | a3b3cc2b883aac18a3388a405db809a99d66e3cf (patch) | |
tree | ca9332ca3160df6005077d2235c655ac6021c3d8 /drivers/video/omap2/displays/panel-taal.c | |
parent | 569969d6015f846926267cc40ed5fec936717f68 (diff) |
OMAP: DSS2: Create an enum for DSI pixel formats
Currently, DSI pixel info is only represented by the pixel size in bits using
the pixel_size parameter in omap_dss_device struct's ctrl member.
This is not sufficient information for DSI video mode usage, as two of the
supported formats(RGB666 loosely packed, and RGB888) have the same pixel
container size, but different data_type values for the video mode packet header.
Create enum "omap_dss_dsi_pixel_format" which describes the pixel data format
the panel is configured for. Create helper function dsi_get_pixel_size() which
returns the pixel size of the given pixel format.
Modify functions omapdss_default_get_recommended_bpp() and dss_use_replication()
to use dsi_get_pixel_size().
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays/panel-taal.c')
-rw-r--r-- | drivers/video/omap2/displays/panel-taal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c index 7675687c6fe4..ddc696d52abe 100644 --- a/drivers/video/omap2/displays/panel-taal.c +++ b/drivers/video/omap2/displays/panel-taal.c | |||
@@ -976,7 +976,7 @@ static int taal_probe(struct omap_dss_device *dssdev) | |||
976 | 976 | ||
977 | dssdev->panel.config = OMAP_DSS_LCD_TFT; | 977 | dssdev->panel.config = OMAP_DSS_LCD_TFT; |
978 | dssdev->panel.timings = panel_config->timings; | 978 | dssdev->panel.timings = panel_config->timings; |
979 | dssdev->ctrl.pixel_size = 24; | 979 | dssdev->panel.dsi_pix_fmt = OMAP_DSS_DSI_FMT_RGB888; |
980 | 980 | ||
981 | td = kzalloc(sizeof(*td), GFP_KERNEL); | 981 | td = kzalloc(sizeof(*td), GFP_KERNEL); |
982 | if (!td) { | 982 | if (!td) { |