diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-03-28 14:58:56 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-09 09:53:05 +0200 |
commit | e4a9e94cc58ed6e4efb02b80be3a9bf57f448d07 (patch) | |
tree | c4b33461be5176e7c5ae7cc1590501b889f13ad1 /include/video/omap-panel-nokia-dsi.h | |
parent | OMAPDSS: Taal: move reset gpio handling to taal driver (diff) | |
download | linux-e4a9e94cc58ed6e4efb02b80be3a9bf57f448d07.tar.xz linux-e4a9e94cc58ed6e4efb02b80be3a9bf57f448d07.zip |
OMAPDSS: DSI: implement generic DSI pin config
In preparation for device tree, this patch changes how the DSI pins are
configured. The current configuration method is only doable with board
files and the configuration data is OMAP specific.
This patch moves the configuration data to the panel's platform data,
and the data can easily be given via DT in the future. The configuration
data format is also changed to a generic one which should be suitable
for all platforms.
The new format is an array of pin numbers, where the array items start
from clock + and -, then data1 + and -, and so on. For example:
{
0, // pin num for clock lane +
1, // pin num for clock lane -
2, // pin num for data1 lane +
3, // pin num for data1 lane -
...
}
The pin numbers are translated by the DSI driver and used to configure
the hardware appropriately.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/video/omap-panel-nokia-dsi.h')
-rw-r--r-- | include/video/omap-panel-nokia-dsi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/video/omap-panel-nokia-dsi.h b/include/video/omap-panel-nokia-dsi.h index 7dc71f9c13e6..04219a295539 100644 --- a/include/video/omap-panel-nokia-dsi.h +++ b/include/video/omap-panel-nokia-dsi.h @@ -11,6 +11,7 @@ struct omap_dss_device; * @esd_interval: interval of ESD checks, 0 = disabled (ms) * @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms) * @use_dsi_backlight: true if panel uses DSI command to control backlight + * @pin_config: DSI pin configuration */ struct nokia_dsi_panel_data { const char *name; @@ -24,6 +25,8 @@ struct nokia_dsi_panel_data { unsigned ulps_timeout; bool use_dsi_backlight; + + struct omap_dsi_pin_config pin_config; }; #endif /* __OMAP_NOKIA_DSI_PANEL_H */ |