OMAPDSS: add dispc_ovl_enabled()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 10 Oct 2012 11:13:15 +0000 (14:13 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 29 Oct 2012 10:44:39 +0000 (12:44 +0200)
Add new dispc function, dispc_ovl_enabled(). This returns if the overlay
enable bit is set in the registers.

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

index b5cdbaf61f07625d3eaeec54b24f2af1e07ef7fe..3fd60ce3d7182dee72a951dea12e7ac145c518f4 100644 (file)
@@ -2589,6 +2589,11 @@ int dispc_ovl_enable(enum omap_plane plane, bool enable)
        return 0;
 }
 
+bool dispc_ovl_enabled(enum omap_plane plane)
+{
+       return REG_GET(DISPC_OVL_ATTRIBUTES(plane), 0, 0);
+}
+
 static void dispc_mgr_disable_isr(void *data, u32 mask)
 {
        struct completion *compl = data;
index 85c6fc8cec1d9197264f8a7571a2a9cf0e39a238..e3e5a63dacece46b5ec091a21fee3a62a936cca1 100644 (file)
@@ -427,6 +427,7 @@ int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi,
                bool replication, const struct omap_video_timings *mgr_timings,
                bool mem_to_mem);
 int dispc_ovl_enable(enum omap_plane plane, bool enable);
+bool dispc_ovl_enabled(enum omap_plane plane);
 void dispc_ovl_set_channel_out(enum omap_plane plane,
                enum omap_channel channel);