Commit ed922a89 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mauro Carvalho Chehab

V4L/DVB (10094): Add tw9910 driver

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

 create mode 100644 drivers/media/video/tw9910.c
 create mode 100644 include/media/tw9910.h
Signed-off-by: default avatarKuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 042d8790
...@@ -755,6 +755,12 @@ config MT9V022_PCA9536_SWITCH ...@@ -755,6 +755,12 @@ config MT9V022_PCA9536_SWITCH
Select this if your MT9V022 camera uses a PCA9536 I2C GPIO Select this if your MT9V022 camera uses a PCA9536 I2C GPIO
extender to switch between 8 and 10 bit datawidth modes 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 config SOC_CAMERA_PLATFORM
tristate "platform camera support" tristate "platform camera support"
depends on SOC_CAMERA depends on SOC_CAMERA
......
...@@ -140,6 +140,7 @@ obj-$(CONFIG_SOC_CAMERA_MT9M111) += mt9m111.o ...@@ -140,6 +140,7 @@ obj-$(CONFIG_SOC_CAMERA_MT9M111) += mt9m111.o
obj-$(CONFIG_SOC_CAMERA_MT9V022) += mt9v022.o obj-$(CONFIG_SOC_CAMERA_MT9V022) += mt9v022.o
obj-$(CONFIG_SOC_CAMERA_OV772X) += ov772x.o obj-$(CONFIG_SOC_CAMERA_OV772X) += ov772x.o
obj-$(CONFIG_SOC_CAMERA_PLATFORM) += soc_camera_platform.o obj-$(CONFIG_SOC_CAMERA_PLATFORM) += soc_camera_platform.o
obj-$(CONFIG_SOC_CAMERA_TW9910) += tw9910.o
obj-$(CONFIG_VIDEO_AU0828) += au0828/ obj-$(CONFIG_VIDEO_AU0828) += au0828/
......
This diff is collapsed.
/*
* tw9910 Driver header
*
* Copyright (C) 2008 Renesas Solutions Corp.
* Kuninori Morimoto <morimoto.kuninori@renesas.com>
*
* Based on ov772x.h
*
* Copyright (C) Kuninori Morimoto <morimoto.kuninori@renesas.com>
*
* 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 tw9910_mpout_pin {
TW9910_MPO_VLOSS,
TW9910_MPO_HLOCK,
TW9910_MPO_SLOCK,
TW9910_MPO_VLOCK,
TW9910_MPO_MONO,
TW9910_MPO_DET50,
TW9910_MPO_FIELD,
TW9910_MPO_RTCO,
};
struct tw9910_video_info {
unsigned long buswidth;
enum tw9910_mpout_pin mpout;
struct soc_camera_link link;
};
#endif /* __TW9910_H__ */
...@@ -87,6 +87,9 @@ enum { ...@@ -87,6 +87,9 @@ enum {
/* module wm8775: just ident 8775 */ /* module wm8775: just ident 8775 */
V4L2_IDENT_WM8775 = 8775, V4L2_IDENT_WM8775 = 8775,
/* module tw9910: just ident 9910 */
V4L2_IDENT_TW9910 = 9910,
/* module cs53132a: just ident 53132 */ /* module cs53132a: just ident 53132 */
V4L2_IDENT_CS53l32A = 53132, V4L2_IDENT_CS53l32A = 53132,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment