]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0970c9a3eafbc2941aa6b7c9be94c6fa93a8fa69
treeaee514d49e1ccbc1aabd1cf74f4ff603c35d00b2
parentdb280eaf7801a80957d38e3408193d998c44fdb9
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