summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/omap/omap_voutlib.h
diff options
context:
space:
mode:
authorTomi Valkeinen2012-11-12 14:17:39 +0100
committerTomi Valkeinen2012-11-29 18:09:16 +0100
commit950e2fb420d54bf0ee0de2fb0f146827a98330bf (patch)
tree77751ca395115f2c0eef332e2e3179c15faeb0af /drivers/media/platform/omap/omap_voutlib.h
parentOMAPDSS: Use only "omapdss_dss" platform device to get context lost count (diff)
downloadkernel-qcow2-linux-950e2fb420d54bf0ee0de2fb0f146827a98330bf.tar.gz
kernel-qcow2-linux-950e2fb420d54bf0ee0de2fb0f146827a98330bf.tar.xz
kernel-qcow2-linux-950e2fb420d54bf0ee0de2fb0f146827a98330bf.zip
[media] omap_vout: use omapdss's version instead of cpu_is_*
cpu_is_* class functions create a dependency to OMAP platform code. omapdss driver, which omap_vout uses, exposes a function to get the version of the DSS hardware. To remove the dependency to OMAP platform code this patch changes omap_vout to use the omapdss version. For most of the checks, the ones dealing with DSS differences, this is actually more correct than using cpu_is_* functions. For the check whether VRFB is available or not this is not really correct, but still works fine. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/omap/omap_voutlib.h')
-rw-r--r--drivers/media/platform/omap/omap_voutlib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/omap/omap_voutlib.h b/drivers/media/platform/omap/omap_voutlib.h
index e51750a597e3..f9d1c0779f33 100644
--- a/drivers/media/platform/omap/omap_voutlib.h
+++ b/drivers/media/platform/omap/omap_voutlib.h
@@ -32,5 +32,8 @@ void omap_vout_new_format(struct v4l2_pix_format *pix,
struct v4l2_window *win);
unsigned long omap_vout_alloc_buffer(u32 buf_size, u32 *phys_addr);
void omap_vout_free_buffer(unsigned long virtaddr, u32 buf_size);
+
+bool omap_vout_dss_omap24xx(void);
+bool omap_vout_dss_omap34xx(void);
#endif /* #ifndef OMAP_VOUTLIB_H */