OMAPDSS: add manager ops
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 10 Oct 2012 07:56:05 +0000 (10:56 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 7 Dec 2012 15:05:55 +0000 (17:05 +0200)
commit74b65ec24560ab0df0e7b789fa91cde4a442f169
tree2d322869cb9ea6d9196e6743dbb7d67138b2cd30
parent6abae7a18a8c9dbec96915eb924dc06288a47b02
OMAPDSS: add manager ops

The output drivers need some operations from the overlay managers, like
enable and set_timings. These will affect the dispc registers, and need
to be synchronized with the composition-side changes with overlays and
overlay managers.

We want to handle these calls in the apply.c in the compatibility mode,
but when in non-compat mode, the calls need to be handled by some other
component (e.g. omapdrm).

To make this possible, this patch creates a set of function pointers in
a dss_mgr_ops struct, that is used to redirect the calls into the
correct destination.

The non-compat users can install their mgr ops with
dss_install_mgr_ops() function.

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