Merge remote-tracking branch 'aosp/android-3.0' into develop-3.0
[firefly-linux-kernel-4.4.55.git] / drivers / media / video / mt9p111.h
1 /*
2  * Driver for MT9P111 CMOS Image Sensor from Aptina
3  *
4  * Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
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 version 2 as
8  * published by the Free Software Foundation.
9  */
10
11 #ifndef __MT9P111_H__
12 #define __MT9P111_H__
13 struct reginfo
14 {
15     u16 reg;
16     u16 val;
17         u16 reg_len;
18         u16 rev;
19 };
20
21 #define WORD_LEN             0x04
22 #define BYTE_LEN             0x02
23
24 #define SEQUENCE_INIT        0x00
25 #define SEQUENCE_NORMAL      0x01
26 #define SEQUENCE_CAPTURE     0x02
27 #define SEQUENCE_PREVIEW     0x03
28
29 #define SEQUENCE_PROPERTY    0xFFFC
30 #define SEQUENCE_WAIT_MS     0xFFFD
31 #define SEQUENCE_WAIT_US     0xFFFE
32 #define SEQUENCE_END         0xFFFF
33
34 /*configure register for flipe and mirror during initial*/
35 #define CONFIG_SENSOR_FLIPE     0
36 #define CONFIG_SENSOR_MIRROR    0
37 #define CONFIG_SENSOR_MIRROR_AND_FLIPE  1
38 #define CONFIG_SENSOR_NONE_FLIP_MIRROR  0
39 /**adjust part parameter to solve bug******/
40 #define ADJUST_FOR_720P_FALG      1
41 #define ADJUST_FOR_VGA_FALG       1
42 #define ADJUST_FOR_CAPTURE_FALG   1
43 #define ADJUST_PCLK_FRE_FALG      1
44 /**optimize code to shoten open time******/
45 #define ADJUST_OPTIMIZE_TIME_FALG      1
46
47
48 #endif