summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2008-07-17 00:59:28 +0200
committerMagnus Damm <magnus.damm@gmail.com>2008-07-17 00:59:28 +0200
commit22a4b32d43ab24e459a3d454f2bd89ec0193056d (patch)
tree379a77192d7b333c3715d4a5f67230636116eb5d /linux/include
parent2bddd0c00ca2ada3437d201131eaf36cde36f653 (diff)
downloadmediapointer-dvb-s2-22a4b32d43ab24e459a3d454f2bd89ec0193056d.tar.gz
mediapointer-dvb-s2-22a4b32d43ab24e459a3d454f2bd89ec0193056d.tar.bz2
sh_mobile_ceu_camera: Add SuperH Mobile CEU driver V3
This is V3 of the SuperH Mobile CEU soc_camera driver. The CEU hardware block is configured in a transparent data fetch mode, frames are captured from the attached camera and written to physically contiguous memory buffers provided by the newly added videobuf-dma-contig queue. Tested on sh7722 and sh7723 processors. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de> --- Changes since V2: - remove SUPERH Kconfig dependency - move sh_mobile_ceu.h to include/media - add board callback support with enable_camera()/disable_camera() - add support for declare_coherent_memory - rework video memory limit - more verbose error messages Changes since V1: - fixed the CEU driver to work with the newly updated patches drivers/media/video/Kconfig | 8 drivers/media/video/Makefile | 1 drivers/media/video/sh_mobile_ceu_camera.c | 657 ++++++++++++++++++++++++++++ include/media/sh_mobile_ceu.h | 12 4 files changed, 678 insertions(+)
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/media/sh_mobile_ceu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/include/media/sh_mobile_ceu.h b/linux/include/media/sh_mobile_ceu.h
new file mode 100644
index 000000000..234a4711d
--- /dev/null
+++ b/linux/include/media/sh_mobile_ceu.h
@@ -0,0 +1,12 @@
+#ifndef __ASM_SH_MOBILE_CEU_H__
+#define __ASM_SH_MOBILE_CEU_H__
+
+#include <media/soc_camera.h>
+
+struct sh_mobile_ceu_info {
+ unsigned long flags; /* SOCAM_... */
+ void (*enable_camera)(void);
+ void (*disable_camera)(void);
+};
+
+#endif /* __ASM_SH_MOBILE_CEU_H__ */