Skip to contentSkip to conversation

Add tw9910 driver

PATCH Superseded Kuninori Morimoto 1 participant 1 message Dec 15, 2008 Media (V4L/DVB)

v2 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Add tw9910 driver

This patch adds tw9910 driver that use soc_camera framework. It was tested on SH Migo-r board.

---
v1 -> v2

fix try_fmt, start_capture
this patch was tested by mplayer

 drivers/media/video/Kconfig     |    6 +
 drivers/media/video/Makefile    |    1 +
 drivers/media/video/tw9910.c    |  937 +++++++++++++++++++++++++++++++++++++++
 include/media/tw9910.h          |   39 ++
 include/media/v4l2-chip-ident.h |    3 +
 5 files changed, 986 insertions(+), 0 deletions(-)
 create mode 100644 drivers/media/video/tw9910.c
 create mode 100644 include/media/tw9910.h
drivers/media/video/Kconfig +6 -0
index af951bd..8eb3869 100644
@@ -744,6 +744,12 @@ config MT9V022_PCA9536_SWITCH
 	  Select this if your MT9V022 camera uses a PCA9536 I2C GPIO
 	  extender to switch between 8 and 10 bit datawidth modes
 
+config SOC_CAMERA_TW9910
+	tristate "tw9910 support"
+	depends on SOC_CAMERA && I2C
+	help
+	  This is a tw9910 video driver
+
 config SOC_CAMERA_PLATFORM
 	tristate "platform camera support"
 	depends on SOC_CAMERA
drivers/media/video/Makefile +1 -0
index cc6698e..f1e004d 100644
@@ -135,6 +135,7 @@ obj-$(CONFIG_SOC_CAMERA_MT9M111)	+= mt9m111.o
 obj-$(CONFIG_SOC_CAMERA_MT9V022)	+= mt9v022.o
 obj-$(CONFIG_SOC_CAMERA_OV772X)		+= ov772x.o
 obj-$(CONFIG_SOC_CAMERA_PLATFORM)	+= soc_camera_platform.o
+obj-$(CONFIG_SOC_CAMERA_TW9910)		+= tw9910.o
 
 obj-$(CONFIG_VIDEO_AU0828) += au0828/
 
drivers/media/video/tw9910.c new file +937 -0

937 lines not on this page · raw message

include/media/tw9910.h new file +39 -0
new file mode 100644
index 0000000..af825e8
@@ -0,0 +1,39 @@
+/*
+ * tw9910 Driver header
+ *
+ * Copyright (C) 2008 Renesas Solutions Corp.
+ * Kuninori Morimoto <[email protected]>
+ *
+ * Based on ov772x.h
+ *
+ * Copyright (C) Kuninori Morimoto <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __TW9910_H__
+#define __TW9910_H__
+
+#include <media/soc_camera.h>
+
+enum MPOUT_pin {
+	MPO_VLOSS,
+	MPO_HLOCK,
+	MPO_SLOCK,
+	MPO_VLOCK,
+	MPO_MONO,
+	MPO_DET50,
+	MPO_FIELD,
+	MPO_RTCO,
+};
+
+struct tw9910_video_info {
+	unsigned long          buswidth;
+	enum MPOUT_pin         mpout;
+	struct soc_camera_link link;
+};
+
+
+#endif /* __TW9910_H__ */
include/media/v4l2-chip-ident.h +3 -0
index 14a205f..0895eb2 100644
@@ -84,6 +84,9 @@ enum {
 	/* module wm8775: just ident 8775 */
 	V4L2_IDENT_WM8775 = 8775,
 
+	/* module tw9910: just ident 9910 */
+	V4L2_IDENT_TW9910 = 9910,
+
 	/* module cs53132a: just ident 53132 */
 	V4L2_IDENT_CS53l32A = 53132,
 
Signature · 6 lines
1.5.6.3

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list