xref: /OK3568_Linux_fs/kernel/drivers/soc/rockchip/rk_camera_sensor_info.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2  * rk_camera_sensor_info.h - PXA camera driver header file
3  *
4  * Copyright (C) 2003, Intel Corporation
5  * Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  */
17 
18 #ifndef __RK_CAMERA_SENSOR_INFO_H_
19 #define __RK_CAMERA_SENSOR_INFO_H_
20 
21 /* Camera Sensor Must Define Macro Begin */
22 #define RK29_CAM_SENSOR_OV7675 ov7675
23 #define RK29_CAM_SENSOR_OV9650 ov9650
24 #define RK29_CAM_SENSOR_OV2640 ov2640
25 #define RK29_CAM_SENSOR_OV2655 ov2655
26 #define RK29_CAM_SENSOR_OV2659 ov2659
27 #define RK29_CAM_SENSOR_GC2145 gc2145
28 #define RK29_CAM_SENSOR_GC2155 gc2155
29 #define RK29_CAM_SENSOR_OV7690 ov7690
30 #define RK29_CAM_SENSOR_OV3640 ov3640
31 #define RK29_CAM_SENSOR_OV3660 ov3660
32 #define RK29_CAM_SENSOR_OV5640 ov5640
33 #define RK29_CAM_SENSOR_OV5642 ov5642
34 #define RK29_CAM_SENSOR_S5K6AA s5k6aa
35 #define RK29_CAM_SENSOR_MT9D112 mt9d112
36 #define RK29_CAM_SENSOR_MT9D113 mt9d113
37 #define RK29_CAM_SENSOR_MT9P111 mt9p111
38 #define RK29_CAM_SENSOR_MT9T111 mt9t111
39 #define RK29_CAM_SENSOR_GT2005  gt2005
40 #define RK29_CAM_SENSOR_GC0307  gc0307
41 #define RK29_CAM_SENSOR_GC0308  gc0308
42 #define RK29_CAM_SENSOR_GC0309  gc0309
43 #define RK29_CAM_SENSOR_GC0312  gc0312
44 #define RK29_CAM_SENSOR_GC2015  gc2015
45 #define RK29_CAM_SENSOR_GC0328  gc0328
46 #define RK29_CAM_SENSOR_GC0329  gc0329
47 #define RK29_CAM_SENSOR_GC2035	gc2035
48 #define RK29_CAM_SENSOR_SIV120B  siv120b
49 #define RK29_CAM_SENSOR_SIV121D  siv121d
50 #define RK29_CAM_SENSOR_SID130B  sid130B
51 #define RK29_CAM_SENSOR_HI253  hi253
52 #define RK29_CAM_SENSOR_HI704  hi704
53 #define RK29_CAM_SENSOR_NT99250 nt99250
54 #define RK29_CAM_SENSOR_SP0718  sp0718
55 #define RK29_CAM_SENSOR_SP0838  sp0838
56 #define RK29_CAM_SENSOR_SP2518  sp2518
57 #define RK29_CAM_SENSOR_S5K5CA  s5k5ca
58 #define RK29_CAM_ISP_MTK9335	mtk9335isp
59 #define RK29_CAM_SENSOR_HM2057  hm2057
60 #define RK29_CAM_SENSOR_HM5065  hm5065
61 #define RK29_CAM_SENSOR_NT99160 nt99160
62 #define RK29_CAM_SENSOR_NT99240 nt99240
63 #define RK29_CAM_SENSOR_NT99252 nt99252
64 #define RK29_CAM_SENSOR_NT99340 nt99340
65 #define RK29_CAM_ISP_ICATCH7002_MI1040  icatchmi1040
66 #define RK29_CAM_ISP_ICATCH7002_OV5693  icatchov5693
67 #define RK29_CAM_ISP_ICATCH7002_OV8825  icatchov8825
68 #define RK29_CAM_ISP_ICATCH7002_OV2720  icatchov2720
69 #define RK29_CAM_SENSOR_TP2825  tp2825	/* benjo.zhou#rock-chips.com */
70 #define RK29_CAM_SENSOR_ADV7181 adv7181
71 
72 #define RK29_CAM_SENSOR_NAME_OV7675 "ov7675"
73 #define RK29_CAM_SENSOR_NAME_OV9650 "ov9650"
74 #define RK29_CAM_SENSOR_NAME_OV2640 "ov2640"
75 #define RK29_CAM_SENSOR_NAME_OV2655 "ov2655"
76 #define RK29_CAM_SENSOR_NAME_OV2659 "ov2659"
77 #define RK29_CAM_SENSOR_NAME_OV7690 "ov7690"
78 #define RK29_CAM_SENSOR_NAME_OV3640 "ov3640"
79 #define RK29_CAM_SENSOR_NAME_OV3660 "ov3660"
80 #define RK29_CAM_SENSOR_NAME_OV5640 "ov5640"
81 #define RK29_CAM_SENSOR_NAME_OV5642 "ov5642"
82 #define RK29_CAM_SENSOR_NAME_S5K6AA "s5k6aa"
83 #define RK29_CAM_SENSOR_NAME_MT9D112 "mt9d112"
84 #define RK29_CAM_SENSOR_NAME_MT9D113 "mt9d113"
85 #define RK29_CAM_SENSOR_NAME_MT9P111 "mt9p111"
86 #define RK29_CAM_SENSOR_NAME_MT9T111 "mt9t111"
87 #define RK29_CAM_SENSOR_NAME_GT2005  "gt2005"
88 #define RK29_CAM_SENSOR_NAME_GC0307  "gc0307"
89 #define RK29_CAM_SENSOR_NAME_GC0308  "gc0308"
90 #define RK29_CAM_SENSOR_NAME_GC0309  "gc0309"
91 #define RK29_CAM_SENSOR_NAME_GC0312  "gc0312"
92 #define RK29_CAM_SENSOR_NAME_GC2015  "gc2015"
93 #define RK29_CAM_SENSOR_NAME_GC0328  "gc0328"
94 #define RK29_CAM_SENSOR_NAME_GC2035  "gc2035"
95 #define RK29_CAM_SENSOR_NAME_GC2145  "gc2145"
96 #define RK29_CAM_SENSOR_NAME_GC2155  "gc2155"
97 #define RK29_CAM_SENSOR_NAME_GC0329  "gc0329"
98 #define RK29_CAM_SENSOR_NAME_SIV120B "siv120b"
99 #define RK29_CAM_SENSOR_NAME_SIV121D "siv121d"
100 #define RK29_CAM_SENSOR_NAME_SID130B "sid130B"
101 #define RK29_CAM_SENSOR_NAME_HI253  "hi253"
102 #define RK29_CAM_SENSOR_NAME_HI704  "hi704"
103 #define RK29_CAM_SENSOR_NAME_NT99250 "nt99250"
104 #define RK29_CAM_SENSOR_NAME_SP0718  "sp0718"
105 #define RK29_CAM_SENSOR_NAME_SP0838  "sp0838"
106 #define RK29_CAM_SENSOR_NAME_SP2518  "sp2518"
107 #define RK29_CAM_SENSOR_NAME_S5K5CA  "s5k5ca"
108 #define RK29_CAM_ISP_NAME_MTK9335ISP "mtk9335isp"
109 #define RK29_CAM_SENSOR_NAME_HM2057  "hm2057"
110 #define RK29_CAM_SENSOR_NAME_HM5065  "hm5065"
111 #define RK29_CAM_ISP_NAME_ICATCH7002_MI1040 "icatchmi1040"
112 #define RK29_CAM_ISP_NAME_ICATCH7002_OV5693 "icatchov5693"
113 #define RK29_CAM_ISP_NAME_ICATCH7002_OV8825 "icatchov8825"
114 #define RK29_CAM_ISP_NAME_ICATCH7002_OV2720 "icatchov2720"
115 #define RK29_CAM_SENSOR_NAME_TP2825  "tp2825"
116 #define RK29_CAM_SENSOR_NAME_ADV7181 "adv7181"
117 
118 /* Sensor full resolution define */
119 #define ov7675_FULL_RESOLUTION     0x30000 /* 0.3 megapixel */
120 #define ov9650_FULL_RESOLUTION     0x130000 /* 1.3 megapixel */
121 #define ov2640_FULL_RESOLUTION     0x200000 /* 2 megapixel */
122 #define ov2655_FULL_RESOLUTION     0x200000
123 #define ov2659_FULL_RESOLUTION     0x200000
124 #define gc2145_FULL_RESOLUTION     0x200000
125 #define gc2155_FULL_RESOLUTION     0x200000
126 
127 #define ov2660_FULL_RESOLUTION     0x200000
128 
129 #define ov7690_FULL_RESOLUTION     0x300000
130 #define ov3640_FULL_RESOLUTION     0x300000
131 #define ov3660_FULL_RESOLUTION     0x300000
132 #define ov5640_FULL_RESOLUTION     0x500000
133 #if defined(CONFIG_SOC_CAMERA_OV5642_INTERPOLATION_8M)
134 	#define ov5642_FULL_RESOLUTION     0x800000
135 #else
136     #define ov5642_FULL_RESOLUTION     0x500000
137 #endif
138 #define s5k6aa_FULL_RESOLUTION     0x130000
139 #define mt9d112_FULL_RESOLUTION    0x200000
140 #define mt9d113_FULL_RESOLUTION    0x200000
141 #define mt9t111_FULL_RESOLUTION    0x300000
142 #define mt9p111_FULL_RESOLUTION    0x500000
143 #define gt2005_FULL_RESOLUTION     0x200000
144 #if defined(CONFIG_SOC_CAMERA_GC0308_INTERPOLATION_5M)
145 	#define gc0308_FULL_RESOLUTION     0x500000
146 #elif defined(CONFIG_SOC_CAMERA_GC0308_INTERPOLATION_3M)
147 	#define gc0308_FULL_RESOLUTION     0x300000
148 #elif defined(CONFIG_SOC_CAMERA_GC0308_INTERPOLATION_2M)
149 	#define gc0308_FULL_RESOLUTION     0x200000
150 #else
151 	#define gc0308_FULL_RESOLUTION     0x30000
152 #endif
153 #define gc0328_FULL_RESOLUTION     0x30000
154 #define gc0307_FULL_RESOLUTION     0x30000
155 #define gc0309_FULL_RESOLUTION     0x30000
156 #define gc0312_FULL_RESOLUTION     0x30000
157 #define gc2015_FULL_RESOLUTION     0x200000
158 #define siv120b_FULL_RESOLUTION     0x30000
159 #define siv121d_FULL_RESOLUTION     0x30000
160 #define sid130B_FULL_RESOLUTION     0x200000
161 
162 #if defined(CONFIG_SOC_CAMERA_HI253_INTERPOLATION_5M)
163 	#define hi253_FULL_RESOLUTION       0x500000
164 #elif defined(CONFIG_SOC_CAMERA_HI253_INTERPOLATION_3M)
165 	#define hi253_FULL_RESOLUTION       0x300000
166 #else
167 	#define hi253_FULL_RESOLUTION       0x200000
168 #endif
169 
170 #define hi704_FULL_RESOLUTION       0x30000
171 #define nt99250_FULL_RESOLUTION     0x200000
172 #define sp0718_FULL_RESOLUTION      0x30000
173 #define sp0838_FULL_RESOLUTION      0x30000
174 #define sp2518_FULL_RESOLUTION      0x200000
175 #define gc0329_FULL_RESOLUTION      0x30000
176 #define s5k5ca_FULL_RESOLUTION      0x300000
177 #define mtk9335isp_FULL_RESOLUTION  0x500000
178 #define gc2035_FULL_RESOLUTION      0x200000
179 #define hm2057_FULL_RESOLUTION      0x200000
180 #define hm5065_FULL_RESOLUTION      0x500000
181 #define nt99160_FULL_RESOLUTION     0x100000
182 #define nt99240_FULL_RESOLUTION     0x200000
183 #define nt99252_FULL_RESOLUTION     0x200000
184 #define nt99340_FULL_RESOLUTION     0x300000
185 #define icatchmi1040_FULL_RESOLUTION 0x200000
186 #define icatchov5693_FULL_RESOLUTION 0x500000
187 #define icatchov8825_FULL_RESOLUTION 0x800000
188 #define icatchov2720_FULL_RESOLUTION 0x210000
189 #define tp2825_FULL_RESOLUTION		0x100000
190 #define adv7181_FULL_RESOLUTION		0x100000
191 #define end_FULL_RESOLUTION         0x00
192 
193 /* Sensor i2c addr define */
194 #define ov7675_I2C_ADDR             0x78
195 #define ov9650_I2C_ADDR             0x60
196 #define ov2640_I2C_ADDR             0x60
197 #define ov2655_I2C_ADDR             0x60
198 #define ov2659_I2C_ADDR             0x60
199 #define gc2145_I2C_ADDR             0x78
200 #define gc2155_I2C_ADDR             0x78
201 
202 #define ov7690_I2C_ADDR             0x42
203 #define ov3640_I2C_ADDR             0x78
204 #define ov3660_I2C_ADDR             0x78
205 #define ov5640_I2C_ADDR             0x78
206 #define ov5642_I2C_ADDR             0x78
207 
208 #define s5k6aa_I2C_ADDR             0x78
209 #define s5k5ca_I2C_ADDR             0x78
210 
211 #define mt9d112_I2C_ADDR             0x78
212 #define mt9d113_I2C_ADDR             0x78
213 #define mt9t111_I2C_ADDR             0x78
214 
215 #define mt9p111_I2C_ADDR            0x78
216 #define gt2005_I2C_ADDR             0x78
217 #define gc0307_I2C_ADDR             0x42
218 #define gc0328_I2C_ADDR             0x42
219 #define gc0308_I2C_ADDR             0x42
220 #define gc0309_I2C_ADDR             0x42
221 #define gc0312_I2C_ADDR             0x42
222 #define gc0329_I2C_ADDR             0x62
223 #define gc2015_I2C_ADDR             0x60
224 #define gc2035_I2C_ADDR             0x78
225 
226 #define siv120b_I2C_ADDR             INVALID_VALUE
227 #define siv121d_I2C_ADDR             INVALID_VALUE
228 #define sid130B_I2C_ADDR             0x37
229 
230 #define hi253_I2C_ADDR             0x40
231 #define hi704_I2C_ADDR             0x60
232 
233 #define nt99160_I2C_ADDR             0x54
234 #define nt99240_I2C_ADDR             0x6c
235 #define nt99250_I2C_ADDR             0x6c
236 #define nt99252_I2C_ADDR             0x6c
237 #define nt99340_I2C_ADDR             0x76
238 
239 #define sp0718_I2C_ADDR             0x42
240 #define sp0838_I2C_ADDR             0x30
241 #define sp0a19_I2C_ADDR             0x7a
242 #define sp1628_I2C_ADDR             0x78
243 #define sp2518_I2C_ADDR             0x60
244 #define mtk9335isp_I2C_ADDR         0x50
245 #define hm2057_I2C_ADDR             0x48
246 #define hm5065_I2C_ADDR             0x3e
247 #define icatchmi1040_I2C_ADDR		0x78
248 #define icatchov5693_I2C_ADDR       0x78
249 #define icatchov8825_I2C_ADDR       0x78
250 #define icatchov2720_I2C_ADDR       0x78
251 #define tp2825_I2C_ADDR				0x88
252 #define adv7181_I2C_ADDR		0x42
253 #define end_I2C_ADDR                INVALID_VALUE
254 
255 /* Sensor power  active level define */
256 #define PWR_ACTIVE_HIGH                  0x01
257 #define PWR_ACTIVE_LOW					 0x0
258 
259 /* Sensor power down active level define */
260 #define ov7675_PWRDN_ACTIVE             0x01
261 #define ov9650_PWRDN_ACTIVE             0x01
262 #define ov2640_PWRDN_ACTIVE             0x01
263 #define ov2655_PWRDN_ACTIVE             0x01
264 #define ov2659_PWRDN_ACTIVE             0x01
265 #define gc2145_PWRDN_ACTIVE             0x01
266 #define gc2155_PWRDN_ACTIVE             0x01
267 
268 #define ov7690_PWRDN_ACTIVE             0x01
269 #define ov3640_PWRDN_ACTIVE             0x01
270 #define ov3660_PWRDN_ACTIVE             0x01
271 #define ov5640_PWRDN_ACTIVE             0x01
272 #define ov5642_PWRDN_ACTIVE             0x01
273 
274 #define s5k6aa_PWRDN_ACTIVE             0x00
275 #define s5k5ca_PWRDN_ACTIVE             0x00
276 
277 #define mt9d112_PWRDN_ACTIVE             0x01
278 #define mt9d113_PWRDN_ACTIVE             0x01
279 #define mt9t111_PWRDN_ACTIVE             0x01
280 #define mt9p111_PWRDN_ACTIVE             0x01
281 
282 #define gt2005_PWRDN_ACTIVE             0x00
283 #define gc0307_PWRDN_ACTIVE             0x01
284 #define gc0308_PWRDN_ACTIVE             0x01
285 #define gc0328_PWRDN_ACTIVE             0x01
286 #define gc0309_PWRDN_ACTIVE             0x01
287 #define gc0329_PWRDN_ACTIVE             0x01
288 #define gc0312_PWRDN_ACTIVE             0x01
289 #define gc2015_PWRDN_ACTIVE             0x01
290 #define gc2035_PWRDN_ACTIVE             0x01
291 
292 #define siv120b_PWRDN_ACTIVE             INVALID_VALUE
293 #define siv121d_PWRDN_ACTIVE             INVALID_VALUE
294 #define sid130B_PWRDN_ACTIVE             0x37
295 
296 #define hi253_PWRDN_ACTIVE             0x01
297 #define hi704_PWRDN_ACTIVE             0x01
298 
299 #define nt99160_PWRDN_ACTIVE             0x01
300 #define nt99240_PWRDN_ACTIVE             0x01
301 #define nt99250_PWRDN_ACTIVE             0x01
302 #define nt99252_PWRDN_ACTIVE             0x01
303 #define nt99340_PWRDN_ACTIVE             0x01
304 
305 #define sp0718_PWRDN_ACTIVE             0x01
306 #define sp0838_PWRDN_ACTIVE             0x01
307 #define sp0a19_PWRDN_ACTIVE             0x01
308 #define sp1628_PWRDN_ACTIVE             0x01
309 #define sp2518_PWRDN_ACTIVE             0x01
310 #define hm2057_PWRDN_ACTIVE             0x01
311 #define hm5065_PWRDN_ACTIVE             0x00
312 #define mtk9335isp_PWRDN_ACTIVE         0x01
313 #define tp2825_PWRDN_ACTIVE				0x00
314 #define adv7181_PWRDN_ACTIVE		0x00
315 #define end_PWRDN_ACTIVE                INVALID_VALUE
316 
317 
318 /* Sensor power up sequence  define */
319 /* type: bit0-bit4 */
320 #define SENSOR_PWRSEQ_BEGIN         0x00
321 #define SENSOR_PWRSEQ_AVDD          0x01
322 #define SENSOR_PWRSEQ_DOVDD         0x02
323 #define SENSOR_PWRSEQ_DVDD          0x03
324 #define SENSOR_PWRSEQ_PWR           0x04
325 #define SENSOR_PWRSEQ_HWRST         0x05
326 #define SENSOR_PWRSEQ_PWRDN         0x06
327 #define SENSOR_PWRSEQ_CLKIN         0x07
328 #define SENSOR_PWRSEQ_END           0x0F
329 #define SENSOR_PWRSEQ_CNT           0x07
330 
331 #define SENSOR_PWRSEQ_SET(type, idx)    (type << ((idx) * 4))
332 #define SENSOR_PWRSEQ_GET(seq, idx)     ((seq >> ((idx) * 4)) & 0x0f)
333 
334 #define sensor_PWRSEQ_DEFAULT		\
335 	(SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_PWR, 0) |\
336 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_HWRST, 1) |\
337 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_PWRDN, 2) |\
338 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_CLKIN, 3))
339 
340 #define ov7675_PWRSEQ                   sensor_PWRSEQ_DEFAULT
341 #define ov9650_PWRSEQ                   sensor_PWRSEQ_DEFAULT
342 #define ov2640_PWRSEQ                   sensor_PWRSEQ_DEFAULT
343 #define ov2655_PWRSEQ                   sensor_PWRSEQ_DEFAULT
344 #define ov2659_PWRSEQ                   sensor_PWRSEQ_DEFAULT
345 #define ov7690_PWRSEQ                   sensor_PWRSEQ_DEFAULT
346 #define ov3640_PWRSEQ                   sensor_PWRSEQ_DEFAULT
347 #define ov3660_PWRSEQ                   sensor_PWRSEQ_DEFAULT
348 #define ov5640_PWRSEQ                   sensor_PWRSEQ_DEFAULT
349 #define ov5642_PWRSEQ                   sensor_PWRSEQ_DEFAULT
350 #define gc2145_PWRSEQ                   sensor_PWRSEQ_DEFAULT
351 #define gc2155_PWRSEQ                   sensor_PWRSEQ_DEFAULT
352 
353 #define s5k6aa_PWRSEQ                   sensor_PWRSEQ_DEFAULT
354 #define s5k5ca_PWRSEQ                   sensor_PWRSEQ_DEFAULT
355 
356 #define mt9d112_PWRSEQ                   sensor_PWRSEQ_DEFAULT
357 #define mt9d113_PWRSEQ                   sensor_PWRSEQ_DEFAULT
358 #define mt9t111_PWRSEQ                   sensor_PWRSEQ_DEFAULT
359 #define mt9p111_PWRSEQ                   sensor_PWRSEQ_DEFAULT
360 
361 #define gt2005_PWRSEQ                   sensor_PWRSEQ_DEFAULT
362 #define gc0307_PWRSEQ                   sensor_PWRSEQ_DEFAULT
363 #define gc0308_PWRSEQ                   sensor_PWRSEQ_DEFAULT
364 #define gc0328_PWRSEQ                   sensor_PWRSEQ_DEFAULT
365 #define gc0309_PWRSEQ                   sensor_PWRSEQ_DEFAULT
366 #define gc0329_PWRSEQ                   sensor_PWRSEQ_DEFAULT
367 #define gc0312_PWRSEQ                   sensor_PWRSEQ_DEFAULT
368 #define gc2015_PWRSEQ                   sensor_PWRSEQ_DEFAULT
369 #define gc2035_PWRSEQ                   sensor_PWRSEQ_DEFAULT
370 
371 #define siv120b_PWRSEQ                   sensor_PWRSEQ_DEFAULT
372 #define siv121d_PWRSEQ                   sensor_PWRSEQ_DEFAULT
373 #define sid130B_PWRSEQ                   sensor_PWRSEQ_DEFAULT
374 
375 #define hi253_PWRSEQ                   sensor_PWRSEQ_DEFAULT
376 #define hi704_PWRSEQ                   sensor_PWRSEQ_DEFAULT
377 
378 #define nt99160_PWRSEQ                   sensor_PWRSEQ_DEFAULT
379 #define nt99240_PWRSEQ                   sensor_PWRSEQ_DEFAULT
380 #define nt99250_PWRSEQ                   sensor_PWRSEQ_DEFAULT
381 #define nt99252_PWRSEQ                   sensor_PWRSEQ_DEFAULT
382 #define nt99340_PWRSEQ                   sensor_PWRSEQ_DEFAULT
383 
384 #define sp0718_PWRSEQ                   sensor_PWRSEQ_DEFAULT
385 #define sp0838_PWRSEQ                   sensor_PWRSEQ_DEFAULT
386 #define sp0a19_PWRSEQ                   sensor_PWRSEQ_DEFAULT
387 #define sp1628_PWRSEQ                   sensor_PWRSEQ_DEFAULT
388 #define sp2518_PWRSEQ                   sensor_PWRSEQ_DEFAULT
389 #define hm2057_PWRSEQ                   sensor_PWRSEQ_DEFAULT
390 #define hm5065_PWRSEQ		\
391 	(SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_PWR, 1) |\
392 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_HWRST, 2) |\
393 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_PWRDN, 0) |\
394 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_CLKIN, 3))
395 #define mtk9335isp_PWRSEQ			sensor_PWRSEQ_DEFAULT
396 #define icatchov5693_PWRSEQ		\
397 	(SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_PWR, 0) |\
398 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_HWRST, 2) |\
399 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_CLKIN, 1))
400 
401 #define icatchov8825_PWRSEQ		\
402 	(SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_PWR, 0) |\
403 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_HWRST, 2) |\
404 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_CLKIN, 1))
405 
406 #define icatchov2720_PWRSEQ		\
407 	(SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_PWR, 0) |\
408 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_HWRST, 2) |\
409 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_CLKIN, 1))
410 
411 #define icatchmi1040_PWRSEQ		\
412 	(SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_PWR, 0) |\
413 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_HWRST, 2) |\
414 	SENSOR_PWRSEQ_SET(SENSOR_PWRSEQ_CLKIN, 1))
415 
416 #define tp2825_PWRSEQ					sensor_PWRSEQ_DEFAULT
417 #define adv7181_PWRSEQ				sensor_PWRSEQ_DEFAULT
418 
419 #define end_PWRSEQ         0xffffffff
420 /* Camera Sensor Must Define Macro End */
421 #endif
422