xref: /openbmc/linux/include/media/i2c/tw9910.h (revision 9fb29c73)
1 /*
2  * tw9910 Driver header
3  *
4  * Copyright (C) 2008 Renesas Solutions Corp.
5  * Kuninori Morimoto <morimoto.kuninori@renesas.com>
6  *
7  * Based on ov772x.h
8  *
9  * Copyright (C) Kuninori Morimoto <morimoto.kuninori@renesas.com>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License version 2 as
13  * published by the Free Software Foundation.
14  */
15 
16 #ifndef __TW9910_H__
17 #define __TW9910_H__
18 
19 #include <media/soc_camera.h>
20 
21 /**
22  * tw9910_mpout_pin - MPOUT (multi-purpose output) pin functions
23  */
24 enum tw9910_mpout_pin {
25 	TW9910_MPO_VLOSS,
26 	TW9910_MPO_HLOCK,
27 	TW9910_MPO_SLOCK,
28 	TW9910_MPO_VLOCK,
29 	TW9910_MPO_MONO,
30 	TW9910_MPO_DET50,
31 	TW9910_MPO_FIELD,
32 	TW9910_MPO_RTCO,
33 };
34 
35 /**
36  * tw9910_video_info -	tw9910 driver interface structure
37  * @buswidth:		Parallel data bus width (8 or 16).
38  * @mpout:		Selected function of MPOUT (multi-purpose output) pin.
39  *			See &enum tw9910_mpout_pin
40  */
41 struct tw9910_video_info {
42 	unsigned long		buswidth;
43 	enum tw9910_mpout_pin	mpout;
44 };
45 
46 
47 #endif /* __TW9910_H__ */
48