OMAPDSS: APPLY: Remove DISPC writes to manager's lcd parameters in interface drivers
authorArchit Taneja <archit@ti.com>
Fri, 29 Jun 2012 09:07:03 +0000 (14:37 +0530)
committerArchit Taneja <archit@ti.com>
Fri, 29 Jun 2012 10:57:42 +0000 (16:27 +0530)
commitf476ae9dab3234532d41d36beb4ba7be838fa786
treeaee514d49e1ccbc1aabd1cf74f4ff603c35d00b2
parent37a579903efaf25b74fcf1fd645817af94d36152
OMAPDSS: APPLY: Remove DISPC writes to manager's lcd parameters in interface drivers

Replace the DISPC fuctions used to configure LCD channel related manager
parameters with dss_mgr_set_lcd_config() in APPLY. This function ensures that
the DISPC registers are written at the right time by using the shadow register
programming model.

The LCD manager configurations is stored as a private data of manager in APPLY.
It is treated as an extra info as it's the panel drivers which trigger this
apply via interface drivers, and not a DSS2 user like omapfb or omapdrm.

Storing LCD manager related properties in APPLY also prevents the need to refer
to the panel connected to the manager for information. This helps in making the
DSS driver less dependent on panel.

A helper function is added to check whether the manager is LCD or TV. The direct
DISPC register writes are removed from the interface drivers.

Signed-off-by: Archit Taneja <archit@ti.com>
drivers/video/omap2/dss/apply.c
drivers/video/omap2/dss/dpi.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dss.h
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/sdi.c