OMAPDSS: APPLY: add fifo-merge support
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 16 Nov 2011 14:44:08 +0000 (16:44 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 25 Jan 2012 11:46:18 +0000 (13:46 +0200)
commit1d71f42b35ed66d90a9a39bc515bb16cfe2d4a46
tree03768b58ff8aabc922de9d65394cd678341da230
parentfb0119742291b6f30cd97026ee137b2d3d1f4de8
OMAPDSS: APPLY: add fifo-merge support

Add fifo-merge support. This is done mainly in four functions:
mgr_enable/disable and ovl_enable/disable. These are the functions where
overlays are taken into and out of active use.

The process to enable and disable fifo-merge is not simple. We need to
do it in steps, waiting in between for certain settings to be taken into
use, and continuing after that. The reason for this is that fifo-merge
is a common thing for all managers/overlays, and its use must be
synchronized.

As an example, when we disable an overlay, we first set the overlay as
disabled, then wait until the overlay is actually disabled in the HW,
and only after that we may re-configure the fifos, possibly taking
fifo-merge into use.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/apply.c