OMAPDSS: Cleanup implementation of LCD channels
authorChandrabhanu Mahapatra <cmahapatra@ti.com>
Thu, 21 Jun 2012 05:37:44 +0000 (11:07 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 29 Jun 2012 06:41:15 +0000 (09:41 +0300)
commitefa70b3b7da3490f87b18fc3ffef31c4f5e908f2
tree099fb62a56ba066fee7d44523f145ae70a3f1f7b
parent5be3aebd09f384fa2db8dda4fd99b73fc4be64f1
OMAPDSS: Cleanup implementation of LCD channels

The current implementation of LCD channels and managers consists of a number of
if-else construct which has been replaced by a simpler interface. A constant
structure mgr_desc has been created in Display Controller (DISPC) module. The
mgr_desc contains for each channel its name, irqs and  is initialized one time
with all registers and their corresponding fields to be written to enable
various features of Display Subsystem. This structure is later used by various
functions of DISPC which simplifies the further implementation of LCD channels
and its corresponding managers.

Signed-off-by: Chandrabhanu Mahapatra <cmahapatra@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/dss.h
drivers/video/omap2/dss/manager.c