blob: b3d2cc729657df34e57bc300033bafc1baf2bdd6 [file] [log] [blame]
Luca Risoliaf327ebb2007-01-08 10:43:56 -03001/***************************************************************************
2 * Table of device identifiers of the SN9C1xx PC Camera Controllers *
3 * *
4 * Copyright (C) 2007 by Luca Risolia <luca.risolia@studio.unibo.it> *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the Free Software *
18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
19 ***************************************************************************/
20
21#ifndef _SN9C102_DEVTABLE_H_
22#define _SN9C102_DEVTABLE_H_
23
24#include <linux/usb.h>
25
26struct sn9c102_device;
27
28/*
29 Each SN9C1xx camera has proper PID/VID identifiers.
30 SN9C103, SN9C105, SN9C120 support multiple interfaces, but we only have to
31 handle the video class interface.
32*/
33#define SN9C102_USB_DEVICE(vend, prod, bridge) \
34 .match_flags = USB_DEVICE_ID_MATCH_DEVICE | \
35 USB_DEVICE_ID_MATCH_INT_CLASS, \
36 .idVendor = (vend), \
37 .idProduct = (prod), \
38 .bInterfaceClass = 0xff, \
39 .driver_info = (bridge)
40
41static const struct usb_device_id sn9c102_id_table[] = {
42 /* SN9C101 and SN9C102 */
Jean-François Moinedbad3452010-03-29 03:51:18 -030043#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
Luca Risoliaf327ebb2007-01-08 10:43:56 -030044 { SN9C102_USB_DEVICE(0x0c45, 0x6001, BRIDGE_SN9C102), },
45 { SN9C102_USB_DEVICE(0x0c45, 0x6005, BRIDGE_SN9C102), },
Hans de Goede0e4b91c2010-02-10 20:29:43 -030046 { SN9C102_USB_DEVICE(0x0c45, 0x6007, BRIDGE_SN9C102), },
Luca Risoliaf327ebb2007-01-08 10:43:56 -030047 { SN9C102_USB_DEVICE(0x0c45, 0x6009, BRIDGE_SN9C102), },
Luca Risoliaf327ebb2007-01-08 10:43:56 -030048 { SN9C102_USB_DEVICE(0x0c45, 0x600d, BRIDGE_SN9C102), },
Hans de Goede222a07f2008-09-03 17:12:20 -030049/* { SN9C102_USB_DEVICE(0x0c45, 0x6011, BRIDGE_SN9C102), }, OV6650 */
Luca Risoliaf327ebb2007-01-08 10:43:56 -030050 { SN9C102_USB_DEVICE(0x0c45, 0x6019, BRIDGE_SN9C102), },
Hans de Goede69ffd252011-01-06 11:56:30 -030051#endif
Luca Risoliaf327ebb2007-01-08 10:43:56 -030052 { SN9C102_USB_DEVICE(0x0c45, 0x6024, BRIDGE_SN9C102), },
53 { SN9C102_USB_DEVICE(0x0c45, 0x6025, BRIDGE_SN9C102), },
Jean-François Moinedbad3452010-03-29 03:51:18 -030054#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
Luca Risoliaf327ebb2007-01-08 10:43:56 -030055 { SN9C102_USB_DEVICE(0x0c45, 0x6028, BRIDGE_SN9C102), },
56 { SN9C102_USB_DEVICE(0x0c45, 0x6029, BRIDGE_SN9C102), },
57 { SN9C102_USB_DEVICE(0x0c45, 0x602a, BRIDGE_SN9C102), },
Hans de Goede00765f12010-12-12 15:55:03 -030058#endif
Hans de Goedea24f0c52011-01-05 11:36:54 -030059 { SN9C102_USB_DEVICE(0x0c45, 0x602b, BRIDGE_SN9C102), }, /* not in sonixb */
Jean-François Moinedbad3452010-03-29 03:51:18 -030060#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
Luca Risoliaf327ebb2007-01-08 10:43:56 -030061 { SN9C102_USB_DEVICE(0x0c45, 0x602c, BRIDGE_SN9C102), },
Hans de Goede222a07f2008-09-03 17:12:20 -030062/* { SN9C102_USB_DEVICE(0x0c45, 0x602d, BRIDGE_SN9C102), }, HV7131R */
Luca Risoliaf327ebb2007-01-08 10:43:56 -030063 { SN9C102_USB_DEVICE(0x0c45, 0x602e, BRIDGE_SN9C102), },
Jean-François Moine040000a2010-05-07 15:27:44 -030064#endif
Hans de Goedea24f0c52011-01-05 11:36:54 -030065 { SN9C102_USB_DEVICE(0x0c45, 0x6030, BRIDGE_SN9C102), }, /* not in sonixb */
Luca Risoliaf327ebb2007-01-08 10:43:56 -030066 /* SN9C103 */
Hans de Goedea24f0c52011-01-05 11:36:54 -030067/* { SN9C102_USB_DEVICE(0x0c45, 0x6080, BRIDGE_SN9C103), }, non existent ? */
68 { SN9C102_USB_DEVICE(0x0c45, 0x6082, BRIDGE_SN9C103), }, /* not in sonixb */
Hans de Goede69ffd252011-01-06 11:56:30 -030069#if !defined CONFIG_USB_GSPCA_SONIXB && !defined CONFIG_USB_GSPCA_SONIXB_MODULE
Hans de Goede222a07f2008-09-03 17:12:20 -030070/* { SN9C102_USB_DEVICE(0x0c45, 0x6083, BRIDGE_SN9C103), }, HY7131D/E */
Hans de Goedea24f0c52011-01-05 11:36:54 -030071/* { SN9C102_USB_DEVICE(0x0c45, 0x6088, BRIDGE_SN9C103), }, non existent ? */
72/* { SN9C102_USB_DEVICE(0x0c45, 0x608a, BRIDGE_SN9C103), }, non existent ? */
73/* { SN9C102_USB_DEVICE(0x0c45, 0x608b, BRIDGE_SN9C103), }, non existent ? */
Luca Risoliaf327ebb2007-01-08 10:43:56 -030074 { SN9C102_USB_DEVICE(0x0c45, 0x608c, BRIDGE_SN9C103), },
Hans de Goede222a07f2008-09-03 17:12:20 -030075/* { SN9C102_USB_DEVICE(0x0c45, 0x608e, BRIDGE_SN9C103), }, CISVF10 */
Luca Risoliaf327ebb2007-01-08 10:43:56 -030076 { SN9C102_USB_DEVICE(0x0c45, 0x608f, BRIDGE_SN9C103), },
Hans de Goedea24f0c52011-01-05 11:36:54 -030077/* { SN9C102_USB_DEVICE(0x0c45, 0x60a0, BRIDGE_SN9C103), }, non existent ? */
78/* { SN9C102_USB_DEVICE(0x0c45, 0x60a2, BRIDGE_SN9C103), }, non existent ? */
79/* { SN9C102_USB_DEVICE(0x0c45, 0x60a3, BRIDGE_SN9C103), }, non existent ? */
Hans de Goede222a07f2008-09-03 17:12:20 -030080/* { SN9C102_USB_DEVICE(0x0c45, 0x60a8, BRIDGE_SN9C103), }, PAS106 */
81/* { SN9C102_USB_DEVICE(0x0c45, 0x60aa, BRIDGE_SN9C103), }, TAS5130 */
Hans de Goedea24f0c52011-01-05 11:36:54 -030082/* { SN9C102_USB_DEVICE(0x0c45, 0x60ab, BRIDGE_SN9C103), }, TAS5110, non existent */
83/* { SN9C102_USB_DEVICE(0x0c45, 0x60ac, BRIDGE_SN9C103), }, non existent ? */
84/* { SN9C102_USB_DEVICE(0x0c45, 0x60ae, BRIDGE_SN9C103), }, non existent ? */
Luca Risoliaf327ebb2007-01-08 10:43:56 -030085 { SN9C102_USB_DEVICE(0x0c45, 0x60af, BRIDGE_SN9C103), },
86 { SN9C102_USB_DEVICE(0x0c45, 0x60b0, BRIDGE_SN9C103), },
Hans de Goedea24f0c52011-01-05 11:36:54 -030087/* { SN9C102_USB_DEVICE(0x0c45, 0x60b2, BRIDGE_SN9C103), }, non existent ? */
88/* { SN9C102_USB_DEVICE(0x0c45, 0x60b3, BRIDGE_SN9C103), }, non existent ? */
89/* { SN9C102_USB_DEVICE(0x0c45, 0x60b8, BRIDGE_SN9C103), }, non existent ? */
90/* { SN9C102_USB_DEVICE(0x0c45, 0x60ba, BRIDGE_SN9C103), }, non existent ? */
91/* { SN9C102_USB_DEVICE(0x0c45, 0x60bb, BRIDGE_SN9C103), }, non existent ? */
92/* { SN9C102_USB_DEVICE(0x0c45, 0x60bc, BRIDGE_SN9C103), }, non existent ? */
93/* { SN9C102_USB_DEVICE(0x0c45, 0x60be, BRIDGE_SN9C103), }, non existent ? */
Hans de Goede69ffd252011-01-06 11:56:30 -030094#endif
Luca Risoliaf327ebb2007-01-08 10:43:56 -030095 /* SN9C105 */
Jean-François Moinedbad3452010-03-29 03:51:18 -030096#if !defined CONFIG_USB_GSPCA_SONIXJ && !defined CONFIG_USB_GSPCA_SONIXJ_MODULE
Luca Risolia480b55c22007-05-02 10:04:03 -030097 { SN9C102_USB_DEVICE(0x045e, 0x00f5, BRIDGE_SN9C105), },
98 { SN9C102_USB_DEVICE(0x045e, 0x00f7, BRIDGE_SN9C105), },
Luca Risoliaf327ebb2007-01-08 10:43:56 -030099 { SN9C102_USB_DEVICE(0x0471, 0x0327, BRIDGE_SN9C105), },
100 { SN9C102_USB_DEVICE(0x0471, 0x0328, BRIDGE_SN9C105), },
101 { SN9C102_USB_DEVICE(0x0c45, 0x60c0, BRIDGE_SN9C105), },
Hans de Goedea24f0c52011-01-05 11:36:54 -0300102/* { SN9C102_USB_DEVICE(0x0c45, 0x60c2, BRIDGE_SN9C105), }, PO1030 */
103/* { SN9C102_USB_DEVICE(0x0c45, 0x60c8, BRIDGE_SN9C105), }, OM6801 */
104/* { SN9C102_USB_DEVICE(0x0c45, 0x60cc, BRIDGE_SN9C105), }, HV7131GP */
105/* { SN9C102_USB_DEVICE(0x0c45, 0x60ea, BRIDGE_SN9C105), }, non existent ? */
106/* { SN9C102_USB_DEVICE(0x0c45, 0x60ec, BRIDGE_SN9C105), }, MO4000 */
107/* { SN9C102_USB_DEVICE(0x0c45, 0x60ef, BRIDGE_SN9C105), }, ICM105C */
108/* { SN9C102_USB_DEVICE(0x0c45, 0x60fa, BRIDGE_SN9C105), }, OV7648 */
Luca Risoliaf327ebb2007-01-08 10:43:56 -0300109 { SN9C102_USB_DEVICE(0x0c45, 0x60fb, BRIDGE_SN9C105), },
110 { SN9C102_USB_DEVICE(0x0c45, 0x60fc, BRIDGE_SN9C105), },
111 { SN9C102_USB_DEVICE(0x0c45, 0x60fe, BRIDGE_SN9C105), },
112 /* SN9C120 */
Luca Risolia480b55c22007-05-02 10:04:03 -0300113 { SN9C102_USB_DEVICE(0x0458, 0x7025, BRIDGE_SN9C120), },
Hans de Goedea24f0c52011-01-05 11:36:54 -0300114/* { SN9C102_USB_DEVICE(0x0c45, 0x6102, BRIDGE_SN9C120), }, po2030 */
115/* { SN9C102_USB_DEVICE(0x0c45, 0x6108, BRIDGE_SN9C120), }, om6801 */
116/* { SN9C102_USB_DEVICE(0x0c45, 0x610f, BRIDGE_SN9C120), }, S5K53BEB */
Luca Risoliaf327ebb2007-01-08 10:43:56 -0300117 { SN9C102_USB_DEVICE(0x0c45, 0x6130, BRIDGE_SN9C120), },
Hans de Goede222a07f2008-09-03 17:12:20 -0300118/* { SN9C102_USB_DEVICE(0x0c45, 0x6138, BRIDGE_SN9C120), }, MO8000 */
Luca Risoliaf327ebb2007-01-08 10:43:56 -0300119 { SN9C102_USB_DEVICE(0x0c45, 0x613a, BRIDGE_SN9C120), },
120 { SN9C102_USB_DEVICE(0x0c45, 0x613b, BRIDGE_SN9C120), },
121 { SN9C102_USB_DEVICE(0x0c45, 0x613c, BRIDGE_SN9C120), },
122 { SN9C102_USB_DEVICE(0x0c45, 0x613e, BRIDGE_SN9C120), },
Jean-Francois Moinef077b0a2009-09-01 14:52:04 -0300123#endif
Luca Risoliaf327ebb2007-01-08 10:43:56 -0300124 { }
125};
126
127/*
128 Probing functions: on success, you must attach the sensor to the camera
129 by calling sn9c102_attach_sensor().
130 To enable the I2C communication, you might need to perform a really basic
131 initialization of the SN9C1XX chip.
132 Functions must return 0 on success, the appropriate error otherwise.
133*/
134extern int sn9c102_probe_hv7131d(struct sn9c102_device* cam);
Luca Risoliaf423b9a2007-03-26 16:12:04 -0300135extern int sn9c102_probe_hv7131r(struct sn9c102_device* cam);
Luca Risoliaf327ebb2007-01-08 10:43:56 -0300136extern int sn9c102_probe_mi0343(struct sn9c102_device* cam);
Luca Risoliaf423b9a2007-03-26 16:12:04 -0300137extern int sn9c102_probe_mi0360(struct sn9c102_device* cam);
Luca Risoliaddef2dc2007-11-12 11:42:54 -0300138extern int sn9c102_probe_mt9v111(struct sn9c102_device *cam);
Luca Risoliaf327ebb2007-01-08 10:43:56 -0300139extern int sn9c102_probe_ov7630(struct sn9c102_device* cam);
140extern int sn9c102_probe_ov7660(struct sn9c102_device* cam);
141extern int sn9c102_probe_pas106b(struct sn9c102_device* cam);
142extern int sn9c102_probe_pas202bcb(struct sn9c102_device* cam);
143extern int sn9c102_probe_tas5110c1b(struct sn9c102_device* cam);
Luca Risoliaf423b9a2007-03-26 16:12:04 -0300144extern int sn9c102_probe_tas5110d(struct sn9c102_device* cam);
Luca Risoliaf327ebb2007-01-08 10:43:56 -0300145extern int sn9c102_probe_tas5130d1b(struct sn9c102_device* cam);
146
Luca Risoliaf327ebb2007-01-08 10:43:56 -0300147#endif /* _SN9C102_DEVTABLE_H_ */