OMAPDSS: DSI: implement generic DSI pin config
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 28 Mar 2012 12:58:56 +0000 (15:58 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 9 May 2012 07:53:05 +0000 (10:53 +0300)
commite4a9e94cc58ed6e4efb02b80be3a9bf57f448d07
treec4b33461be5176e7c5ae7cc1590501b889f13ad1
parent3acc797c1db2eb873b13a07f21fe9572af4b78ee
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>
arch/arm/mach-omap2/board-4430sdp.c
drivers/video/omap2/displays/panel-taal.c
drivers/video/omap2/dss/dsi.c
include/video/omap-panel-nokia-dsi.h
include/video/omapdss.h