fbdev: sh_mipi_dsi: support different register layouts
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 29 Dec 2010 08:12:22 +0000 (08:12 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 5 Jan 2011 08:16:24 +0000 (17:16 +0900)
The register layout of the MIPI DSI unit on sh-mobile SoCs differ. Add platform
parameters to support such variations.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/video/sh_mipi_dsi.h

index 18bca08..6cb95c9 100644 (file)
@@ -27,9 +27,15 @@ enum sh_mipi_dsi_data_fmt {
 
 struct sh_mobile_lcdc_chan_cfg;
 
+#define SH_MIPI_DSI_HSABM      (1 << 0)
+#define SH_MIPI_DSI_HSPBM      (1 << 1)
+
 struct sh_mipi_dsi_info {
        enum sh_mipi_dsi_data_fmt       data_format;
        struct sh_mobile_lcdc_chan_cfg  *lcd_chan;
+       unsigned long                   flags;
+       u32                             clksrc;
+       unsigned int                    vsynw_offset;
 };
 
 #endif