Lines Matching +full:0 +full:x4c
7 * V0.0X01.0X01 add poweron function.
8 * V0.0X01.0X02 fix mclk issue when probe multiple camera.
9 * V0.0X01.0X03 add enum_frame_interval function.
10 * V0.0X01.0X04 add exposure control and fix v4l2_ctrl init issues.
38 #define DRIVER_VERSION KERNEL_VERSION(0, 0x01, 0x04)
42 #define REG_CHIP_ID_H 0xf0
43 #define REG_CHIP_ID_L 0xf1
44 #define CHIP_ID_H 0x21
45 #define CHIP_ID_L 0x55
47 #define REG_NULL 0xFF
104 {0xfe, 0xf0},
105 {0xfe, 0xf0},
106 {0xfe, 0xf0},
107 {0xfc, 0x06},
108 {0xf6, 0x00},
109 {0xf7, 0x1d},
110 {0xf8, 0x84},
111 {0xfa, 0x00},
112 {0xf9, 0xfe},
113 {0xf2, 0x00},
115 {0xfe, 0x00},
116 {0x03, 0x04},
117 {0x04, 0xe2},
118 {0x09, 0x00},
119 {0x0a, 0x00},
120 {0x0b, 0x00},
121 {0x0c, 0x00},
122 {0x0d, 0x04},
123 {0x0e, 0xc0},
124 {0x0f, 0x06},
125 {0x10, 0x50},
126 {0x12, 0x2e},
127 {0x17, 0x14}, // mirror
128 {0x18, 0x02},
129 {0x19, 0x0e},
130 {0x1a, 0x01},
131 {0x1b, 0x4b},
132 {0x1c, 0x07},
133 {0x1d, 0x10},
134 {0x1e, 0x98},
135 {0x1f, 0x78},
136 {0x20, 0x05},
137 {0x21, 0x40},
138 {0x22, 0xf0},
139 {0x24, 0x16},
140 {0x25, 0x01},
141 {0x26, 0x10},
142 {0x2d, 0x40},
143 {0x30, 0x01},
144 {0x31, 0x90},
145 {0x33, 0x04},
146 {0x34, 0x01},
148 {0xfe, 0x00},
149 {0x80, 0xff},
150 {0x81, 0x2c},
151 {0x82, 0xfa},
152 {0x83, 0x00},
153 {0x84, 0x00}, //yuv 01
154 {0x85, 0x08},
155 {0x86, 0x02},
156 {0x89, 0x03},
157 {0x8a, 0x00},
158 {0x8b, 0x00},
159 {0xb0, 0x55},
160 {0xc3, 0x11}, //00
161 {0xc4, 0x20},
162 {0xc5, 0x30},
163 {0xc6, 0x38},
164 {0xc7, 0x40},
165 {0xec, 0x02},
166 {0xed, 0x04},
167 {0xee, 0x60},
168 {0xef, 0x90},
169 {0xb6, 0x01},
170 {0x90, 0x01},
171 {0x91, 0x00},
172 {0x92, 0x00},
173 {0x93, 0x00},
174 {0x94, 0x00},
175 {0x95, 0x04},
176 {0x96, 0xb0},
177 {0x97, 0x06},
178 {0x98, 0x40},
180 {0xfe, 0x00},
181 {0x18, 0x02},
182 {0x40, 0x42},
183 {0x41, 0x00},
184 {0x43, 0x5b}, //0x54
185 {0x5e, 0x00},
186 {0x5f, 0x00},
187 {0x60, 0x00},
188 {0x61, 0x00},
189 {0x62, 0x00},
190 {0x63, 0x00},
191 {0x64, 0x00},
192 {0x65, 0x00},
193 {0x66, 0x20},
194 {0x67, 0x20},
195 {0x68, 0x20},
196 {0x69, 0x20},
197 {0x6a, 0x08},
198 {0x6b, 0x08},
199 {0x6c, 0x08},
200 {0x6d, 0x08},
201 {0x6e, 0x08},
202 {0x6f, 0x08},
203 {0x70, 0x08},
204 {0x71, 0x08},
205 {0x72, 0xf0},
206 {0x7e, 0x3c},
207 {0x7f, 0x00},
208 {0xfe, 0x00},
210 {0xfe, 0x01},
211 {0x01, 0x08},
212 {0x02, 0xc0},
213 {0x03, 0x04},
214 {0x04, 0x90},
215 {0x05, 0x30},
216 {0x06, 0x98},
217 {0x07, 0x28},
218 {0x08, 0x6c},
219 {0x09, 0x00},
220 {0x0a, 0xc2},
221 {0x0b, 0x11},
222 {0x0c, 0x10},
223 {0x13, 0x2d},
224 {0x17, 0x00},
225 {0x1c, 0x11},
226 {0x1e, 0x61},
227 {0x1f, 0x30},
228 {0x20, 0x40},
229 {0x22, 0x80},
230 {0x23, 0x20},
232 {0x12, 0x35},
233 {0x15, 0x50},
234 {0x10, 0x31},
235 {0x3e, 0x28},
236 {0x3f, 0xe0},
237 {0x40, 0xe0},
238 {0x41, 0x08},
240 {0xfe, 0x02},
241 {0x0f, 0x05},
243 {0xfe, 0x02},
244 {0x90, 0x6c},
245 {0x91, 0x03},
246 {0x92, 0xc4},
247 {0x97, 0x64},
248 {0x98, 0x88},
249 {0x9d, 0x08},
250 {0xa2, 0x11},
251 {0xfe, 0x00},
253 {0xfe, 0x02},
254 {0x80, 0xc1},
255 {0x81, 0x08},
256 {0x82, 0x05},
257 {0x83, 0x04},
258 {0x84, 0x0a},
259 {0x86, 0x80},
260 {0x87, 0x30},
261 {0x88, 0x15},
262 {0x89, 0x80},
263 {0x8a, 0x60},
264 {0x8b, 0x30},
266 {0xfe, 0x01},
267 {0x21, 0x14},
268 {0xfe, 0x02},
269 {0x3c, 0x06},
270 {0x3d, 0x40},
271 {0x48, 0x30},
272 {0x49, 0x06},
273 {0x4b, 0x08},
274 {0x4c, 0x20},
275 {0xa3, 0x50},
276 {0xa4, 0x30},
277 {0xa5, 0x40},
278 {0xa6, 0x80},
279 {0xab, 0x40},
280 {0xae, 0x0c},
281 {0xb3, 0x42},
282 {0xb4, 0x24},
283 {0xb6, 0x50},
284 {0xb7, 0x01},
285 {0xb9, 0x28},
286 {0xfe, 0x00},
288 {0xfe, 0x02},
289 {0x10, 0x0d},
290 {0x11, 0x12},
291 {0x12, 0x17},
292 {0x13, 0x1c},
293 {0x14, 0x27},
294 {0x15, 0x34},
295 {0x16, 0x44},
296 {0x17, 0x55},
297 {0x18, 0x6e},
298 {0x19, 0x81},
299 {0x1a, 0x91},
300 {0x1b, 0x9c},
301 {0x1c, 0xaa},
302 {0x1d, 0xbb},
303 {0x1e, 0xca},
304 {0x1f, 0xd5},
305 {0x20, 0xe0},
306 {0x21, 0xe7},
307 {0x22, 0xed},
308 {0x23, 0xf6},
309 {0x24, 0xfb},
310 {0x25, 0xff},
312 {0xfe, 0x02},
313 {0x26, 0x0d},
314 {0x27, 0x12},
315 {0x28, 0x17},
316 {0x29, 0x1c},
317 {0x2a, 0x27},
318 {0x2b, 0x34},
319 {0x2c, 0x44},
320 {0x2d, 0x55},
321 {0x2e, 0x6e},
322 {0x2f, 0x81},
323 {0x30, 0x91},
324 {0x31, 0x9c},
325 {0x32, 0xaa},
326 {0x33, 0xbb},
327 {0x34, 0xca},
328 {0x35, 0xd5},
329 {0x36, 0xe0},
330 {0x37, 0xe7},
331 {0x38, 0xed},
332 {0x39, 0xf6},
333 {0x3a, 0xfb},
334 {0x3b, 0xff},
336 {0xfe, 0x02},
337 {0xd1, 0x28},
338 {0xd2, 0x28},
339 {0xdd, 0x14},
340 {0xde, 0x88},
341 {0xed, 0x80},
343 {0xfe, 0x01},
344 {0xc2, 0x1f},
345 {0xc3, 0x13},
346 {0xc4, 0x0e},
347 {0xc8, 0x16},
348 {0xc9, 0x0f},
349 {0xca, 0x0c},
350 {0xbc, 0x52},
351 {0xbd, 0x2c},
352 {0xbe, 0x27},
353 {0xb6, 0x47},
354 {0xb7, 0x32},
355 {0xb8, 0x30},
356 {0xc5, 0x00},
357 {0xc6, 0x00},
358 {0xc7, 0x00},
359 {0xcb, 0x00},
360 {0xcc, 0x00},
361 {0xcd, 0x00},
362 {0xbf, 0x0e},
363 {0xc0, 0x00},
364 {0xc1, 0x00},
365 {0xb9, 0x08},
366 {0xba, 0x00},
367 {0xbb, 0x00},
368 {0xaa, 0x0a},
369 {0xab, 0x0c},
370 {0xac, 0x0d},
371 {0xad, 0x02},
372 {0xae, 0x06},
373 {0xaf, 0x05},
374 {0xb0, 0x00},
375 {0xb1, 0x05},
376 {0xb2, 0x02},
377 {0xb3, 0x04},
378 {0xb4, 0x04},
379 {0xb5, 0x05},
380 {0xd0, 0x00},
381 {0xd1, 0x00},
382 {0xd2, 0x00},
383 {0xd6, 0x02},
384 {0xd7, 0x00},
385 {0xd8, 0x00},
386 {0xd9, 0x00},
387 {0xda, 0x00},
388 {0xdb, 0x00},
389 {0xd3, 0x00},
390 {0xd4, 0x00},
391 {0xd5, 0x00},
392 {0xa4, 0x04},
393 {0xa5, 0x00},
394 {0xa6, 0x77},
395 {0xa7, 0x77},
396 {0xa8, 0x77},
397 {0xa9, 0x77},
398 {0xa1, 0x80},
399 {0xa2, 0x80},
401 {0xfe, 0x01},
402 {0xdc, 0x35},
403 {0xdd, 0x28},
404 {0xdf, 0x0d},
405 {0xe0, 0x70},
406 {0xe1, 0x78},
407 {0xe2, 0x70},
408 {0xe3, 0x78},
409 {0xe6, 0x90},
410 {0xe7, 0x70},
411 {0xe8, 0x90},
412 {0xe9, 0x70},
413 {0xfe, 0x00},
415 {0xfe, 0x01},
416 {0x4f, 0x00},
417 {0x4f, 0x00},
418 {0x4b, 0x01},
419 {0x4f, 0x00},
420 {0x4c, 0x01},
421 {0x4d, 0x71},
422 {0x4e, 0x02},
423 {0x4c, 0x01},
424 {0x4d, 0x91},
425 {0x4e, 0x02},
426 {0x4c, 0x01},
427 {0x4d, 0x50},
428 {0x4e, 0x02},
429 {0x4c, 0x01},
430 {0x4d, 0x70},
431 {0x4e, 0x02},
432 {0x4c, 0x01},
433 {0x4d, 0x90},
434 {0x4e, 0x02},
435 {0x4c, 0x01},
436 {0x4d, 0xb0},
437 {0x4e, 0x02},
438 {0x4c, 0x01},
439 {0x4d, 0xd0},
440 {0x4e, 0x02},
441 {0x4c, 0x01},
442 {0x4d, 0x4f},
443 {0x4e, 0x02},
444 {0x4c, 0x01},
445 {0x4d, 0x6f},
446 {0x4e, 0x02},
447 {0x4c, 0x01},
448 {0x4d, 0x8f},
449 {0x4e, 0x02},
450 {0x4c, 0x01},
451 {0x4d, 0xaf},
452 {0x4e, 0x02},
453 {0x4c, 0x01},
454 {0x4d, 0xcf},
455 {0x4e, 0x02},
456 {0x4c, 0x01},
457 {0x4d, 0x6e},
458 {0x4e, 0x03},
459 {0x4c, 0x01},
460 {0x4d, 0x8e},
461 {0x4e, 0x03},
462 {0x4c, 0x01},
463 {0x4d, 0xae},
464 {0x4e, 0x03},
465 {0x4c, 0x01},
466 {0x4d, 0xce},
467 {0x4e, 0x03},
468 {0x4c, 0x01},
469 {0x4d, 0x4d},
470 {0x4e, 0x03},
471 {0x4c, 0x01},
472 {0x4d, 0x6d},
473 {0x4e, 0x03},
474 {0x4c, 0x01},
475 {0x4d, 0x8d},
476 {0x4e, 0x03},
477 {0x4c, 0x01},
478 {0x4d, 0xad},
479 {0x4e, 0x03},
480 {0x4c, 0x01},
481 {0x4d, 0xcd},
482 {0x4e, 0x03},
483 {0x4c, 0x01},
484 {0x4d, 0x4c},
485 {0x4e, 0x03},
486 {0x4c, 0x01},
487 {0x4d, 0x6c},
488 {0x4e, 0x03},
489 {0x4c, 0x01},
490 {0x4d, 0x8c},
491 {0x4e, 0x03},
492 {0x4c, 0x01},
493 {0x4d, 0xac},
494 {0x4e, 0x03},
495 {0x4c, 0x01},
496 {0x4d, 0xcc},
497 {0x4e, 0x03},
498 {0x4c, 0x01},
499 {0x4d, 0xec},
500 {0x4e, 0x03},
501 {0x4c, 0x01},
502 {0x4d, 0x4b},
503 {0x4e, 0x03},
504 {0x4c, 0x01},
505 {0x4d, 0x6b},
506 {0x4e, 0x03},
507 {0x4c, 0x01},
508 {0x4d, 0x8b},
509 {0x4e, 0x03},
510 {0x4c, 0x01},
511 {0x4d, 0xab},
512 {0x4e, 0x03},
513 {0x4c, 0x01},
514 {0x4d, 0x8a},
515 {0x4e, 0x04},
516 {0x4c, 0x01},
517 {0x4d, 0xaa},
518 {0x4e, 0x04},
519 {0x4c, 0x01},
520 {0x4d, 0xca},
521 {0x4e, 0x04},
522 {0x4c, 0x01},
523 {0x4d, 0xa9},
524 {0x4e, 0x04},
525 {0x4c, 0x01},
526 {0x4d, 0xc9},
527 {0x4e, 0x04},
528 {0x4c, 0x01},
529 {0x4d, 0xcb},
530 {0x4e, 0x05},
531 {0x4c, 0x01},
532 {0x4d, 0xeb},
533 {0x4e, 0x05},
534 {0x4c, 0x02},
535 {0x4d, 0x0b},
536 {0x4e, 0x05},
537 {0x4c, 0x02},
538 {0x4d, 0x2b},
539 {0x4e, 0x05},
540 {0x4c, 0x02},
541 {0x4d, 0x4b},
542 {0x4e, 0x05},
543 {0x4c, 0x01},
544 {0x4d, 0xea},
545 {0x4e, 0x05},
546 {0x4c, 0x02},
547 {0x4d, 0x0a},
548 {0x4e, 0x05},
549 {0x4c, 0x02},
550 {0x4d, 0x2a},
551 {0x4e, 0x05},
552 {0x4c, 0x02},
553 {0x4d, 0x6a},
554 {0x4e, 0x06},
555 {0x4c, 0x02},
556 {0x4d, 0x29},
557 {0x4e, 0x06},
558 {0x4c, 0x02},
559 {0x4d, 0x49},
560 {0x4e, 0x06},
561 {0x4c, 0x02},
562 {0x4d, 0x69},
563 {0x4e, 0x06},
564 {0x4c, 0x02},
565 {0x4d, 0x89},
566 {0x4e, 0x06},
567 {0x4c, 0x02},
568 {0x4d, 0xa9},
569 {0x4e, 0x06},
570 {0x4c, 0x02},
571 {0x4d, 0xc9},
572 {0x4e, 0x06},
573 {0x4c, 0x02},
574 {0x4d, 0x48},
575 {0x4e, 0x06},
576 {0x4c, 0x02},
577 {0x4d, 0x68},
578 {0x4e, 0x06},
579 {0x4c, 0x03},
580 {0x4d, 0x09},
581 {0x4e, 0x07},
582 {0x4c, 0x02},
583 {0x4d, 0xa8},
584 {0x4e, 0x07},
585 {0x4c, 0x02},
586 {0x4d, 0xc8},
587 {0x4e, 0x07},
588 {0x4c, 0x02},
589 {0x4d, 0xe8},
590 {0x4e, 0x07},
591 {0x4c, 0x03},
592 {0x4d, 0x08},
593 {0x4e, 0x07},
594 {0x4c, 0x03},
595 {0x4d, 0x28},
596 {0x4e, 0x07},
597 {0x4c, 0x02},
598 {0x4d, 0x87},
599 {0x4e, 0x07},
600 {0x4c, 0x02},
601 {0x4d, 0xa7},
602 {0x4e, 0x07},
603 {0x4c, 0x02},
604 {0x4d, 0xc7},
605 {0x4e, 0x07},
606 {0x4c, 0x02},
607 {0x4d, 0xe7},
608 {0x4e, 0x07},
609 {0x4c, 0x03},
610 {0x4d, 0x07},
611 {0x4e, 0x07},
612 {0x4f, 0x01},
613 {0xfe, 0x01},
615 {0x50, 0x80},
616 {0x51, 0xa8},
617 {0x52, 0x57},
618 {0x53, 0x38},
619 {0x54, 0xc7},
620 {0x56, 0x0e},
621 {0x58, 0x08},
622 {0x5b, 0x00},
623 {0x5c, 0x74},
624 {0x5d, 0x8b},
625 {0x61, 0xd3},
626 {0x62, 0x90},
627 {0x63, 0xaa},
628 {0x65, 0x04},
629 {0x67, 0xb2},
630 {0x68, 0xac},
631 {0x69, 0x00},
632 {0x6a, 0xb2},
633 {0x6b, 0xac},
634 {0x6c, 0xdc},
635 {0x6d, 0xb0},
636 {0x6e, 0x30},
637 {0x6f, 0x40},
638 {0x70, 0x05},
639 {0x71, 0x80},
640 {0x72, 0x80},
641 {0x73, 0x30},
642 {0x74, 0x01},
643 {0x75, 0x01},
644 {0x7f, 0x08},
645 {0x76, 0x70},
646 {0x77, 0x48},
647 {0x78, 0xa0},
648 {0xfe, 0x00},
650 {0xfe, 0x02},
651 {0xc0, 0x01},
652 {0xc1, 0x4a},
653 {0xc2, 0xf3},
654 {0xc3, 0xfc},
655 {0xc4, 0xe4},
656 {0xc5, 0x48},
657 {0xc6, 0xec},
658 {0xc7, 0x45},
659 {0xc8, 0xf8},
660 {0xc9, 0x02},
661 {0xca, 0xfe},
662 {0xcb, 0x42},
663 {0xcc, 0x00},
664 {0xcd, 0x45},
665 {0xce, 0xf0},
666 {0xcf, 0x00},
667 {0xe3, 0xf0},
668 {0xe4, 0x45},
669 {0xe5, 0xe8},
671 {0xfe, 0x01},
672 {0x9f, 0x42},
673 {0xfe, 0x00},
675 {0xfe, 0x00},
676 {0x05, 0x02},
677 {0x06, 0x20},
678 {0x07, 0x00},
679 {0x08, 0x50},
680 {0xfe, 0x01},
681 {0x25, 0x00},
682 {0x26, 0xfa},
684 {0x27, 0x04},
685 {0x28, 0xe2},
686 {0x29, 0x04},
687 {0x2a, 0xe2},
688 {0x2b, 0x04},
689 {0x2c, 0xe2},
690 {0x2d, 0x04},
691 {0x2e, 0xe2},
694 {0xfe, 0x00},
695 {0xfa, 0x00},
696 {0xfd, 0x01},
698 {0xfe, 0x00},
699 {0x90, 0x01},
700 {0x91, 0x00},
701 {0x92, 0x00},
702 {0x93, 0x00},
703 {0x94, 0x00},
704 {0x95, 0x02},
705 {0x96, 0x58},
706 {0x97, 0x03},
707 {0x98, 0x20},
708 {0x99, 0x11},
709 {0x9a, 0x06},
711 {0xfe, 0x00},
712 {0xec, 0x01},
713 {0xed, 0x02},
714 {0xee, 0x30},
715 {0xef, 0x48},
716 {0xfe, 0x01},
717 {0x74, 0x00},
719 {0xfe, 0x01},
720 {0x01, 0x04},
721 {0x02, 0x60},
722 {0x03, 0x02},
723 {0x04, 0x48},
724 {0x05, 0x18},
725 {0x06, 0x4c},
726 {0x07, 0x14},
727 {0x08, 0x36},
728 {0x0a, 0xc0},
729 {0x21, 0x14},
730 {0xfe, 0x00},
732 {0xfe, 0x00},
733 {0xc3, 0x11},
734 {0xc4, 0x20},
735 {0xc5, 0x30},
736 {0xfe, 0x00},
738 {0xfe, 0x00},
739 {0xf2, 0x0f},
740 {REG_NULL, 0x0},
745 {0xfe, 0x00},
746 {0xb6, 0x01},
747 {0xfd, 0x01},
748 {0xfa, 0x00},
751 {0xfe, 0x00},
752 {0x90, 0x01},
753 {0x91, 0x00},
754 {0x92, 0x00},
755 {0x93, 0x00},
756 {0x94, 0x00},
757 {0x95, 0x02},
758 {0x96, 0x58},
759 {0x97, 0x03},
760 {0x98, 0x20},
761 {0x99, 0x11},
762 {0x9a, 0x06},
764 {0xfe, 0x00},
765 {0xec, 0x01},
766 {0xed, 0x02},
767 {0xee, 0x30},
768 {0xef, 0x48},
769 {0xfe, 0x01},
770 {0x74, 0x00},
772 {0xfe, 0x01},
773 {0x01, 0x04},
774 {0x02, 0x60},
775 {0x03, 0x02},
776 {0x04, 0x48},
777 {0x05, 0x18},
778 {0x06, 0x4c},
779 {0x07, 0x14},
780 {0x08, 0x36},
781 {0x0a, 0xc0},
782 {0x21, 0x14},
783 {0xfe, 0x00},
785 {0xfe, 0x00},
786 {0xc3, 0x11},
787 {0xc4, 0x20},
788 {0xc5, 0x30},
789 {0xfe, 0x00},
791 {REG_NULL, 0x0},
796 {0xfe, 0x00},
797 {0xb6, 0x00},
798 {0xfa, 0x11},
799 {0xfd, 0x00},
801 {0xfe, 0x00},
802 {0x90, 0x01},
803 {0x91, 0x00},
804 {0x92, 0x00},
805 {0x93, 0x00},
806 {0x94, 0x00},
807 {0x95, 0x04},
808 {0x96, 0xb0},
809 {0x97, 0x06},
810 {0x98, 0x40},
811 {0x99, 0x11},
812 {0x9a, 0x06},
814 {0xfe, 0x00},
815 {0xec, 0x02},
816 {0xed, 0x04},
817 {0xee, 0x60},
818 {0xef, 0x90},
819 {0xfe, 0x01},
820 {0x74, 0x01},
822 {0xfe, 0x01},
823 {0x01, 0x08},
824 {0x02, 0xc0},
825 {0x03, 0x04},
826 {0x04, 0x90},
827 {0x05, 0x30},
828 {0x06, 0x98},
829 {0x07, 0x28},
830 {0x08, 0x6c},
831 {0x0a, 0xc2},
832 {0x21, 0x15}, //if 0xfa=11,then 0x21=15;else if 0xfa=00,then 0x21=14
833 {0xfe, 0x00},
835 {0xfe, 0x00},
836 {0xc3, 0x00}, //if shutter/2 when capture,then exp_gamma_th/2
837 {0xc4, 0x90},
838 {0xc5, 0x98},
839 {0xfe, 0x00},
841 {REG_NULL, 0x0},
872 if (ret < 0) in gc2155_write_reg()
881 int i, ret = 0; in gc2155_write_array()
883 for (i = 0; ret == 0 && regs[i].addr != REG_NULL; i++) in gc2155_write_array()
906 int cur_best_fit = 0; in gc2155_find_best_fit()
910 for (i = 0; i < ARRAY_SIZE(supported_modes); i++) { in gc2155_find_best_fit()
931 int ret = 0; in gc2155_aec_ctrl()
936 static unsigned int shutter_h = 0x04, shutter_l = 0xe2; in gc2155_aec_ctrl()
937 static unsigned int cap = 0, shutter = 0x04e2; in gc2155_aec_ctrl()
941 cap = 0; in gc2155_aec_ctrl()
942 ret = gc2155_write_reg(client, 0xfe, 0x00); in gc2155_aec_ctrl()
943 ret |= gc2155_write_reg(client, 0xb6, 0x00); in gc2155_aec_ctrl()
944 ret |= gc2155_write_reg(client, 0x03, shutter_h); in gc2155_aec_ctrl()
945 ret |= gc2155_write_reg(client, 0x04, shutter_l); in gc2155_aec_ctrl()
946 ret |= gc2155_write_reg(client, 0x82, 0xfa); in gc2155_aec_ctrl()
947 ret |= gc2155_write_reg(client, 0xb6, 0x01); in gc2155_aec_ctrl()
953 ret = gc2155_write_reg(client, 0xfe, 0x00); in gc2155_aec_ctrl()
954 ret |= gc2155_write_reg(client, 0xb6, 0x00); in gc2155_aec_ctrl()
955 ret |= gc2155_write_reg(client, 0x82, 0xf8); in gc2155_aec_ctrl()
958 value = gc2155_read_reg(client, 0x03); in gc2155_aec_ctrl()
961 value = gc2155_read_reg(client, 0x04); in gc2155_aec_ctrl()
963 shutter |= (value & 0xff); in gc2155_aec_ctrl()
964 dev_info(&client->dev, "%s(%d) 800x600 shutter read(0x%04x)!\n", in gc2155_aec_ctrl()
975 shutter = 0x276; in gc2155_aec_ctrl()
976 dev_info(&client->dev, "%s(%d)lines_10ms(%d),cal(0x%08x)!\n", in gc2155_aec_ctrl()
979 ret |= gc2155_write_reg(client, 0x03, ((shutter >> 8) & 0x1f)); in gc2155_aec_ctrl()
980 ret |= gc2155_write_reg(client, 0x04, (shutter & 0xff)); in gc2155_aec_ctrl()
1021 return 0; in gc2155_set_fmt()
1048 return 0; in gc2155_get_fmt()
1070 return 0; in gc2155_enum_mbus_code()
1089 return 0; in gc2155_enum_frame_sizes()
1104 gpiod_set_value_cansleep(gc2155->reset_gpio, 0); in __gc2155_power_on()
1108 if (ret < 0) { in __gc2155_power_on()
1114 if (ret < 0) in __gc2155_power_on()
1119 if (ret < 0) { in __gc2155_power_on()
1125 gpiod_set_value_cansleep(gc2155->pwdn_gpio, 0); in __gc2155_power_on()
1133 return 0; in __gc2155_power_on()
1139 gpiod_set_value_cansleep(gc2155->reset_gpio, 0); in __gc2155_power_off()
1146 gpiod_set_value_cansleep(gc2155->power_gpio, 0); in __gc2155_power_off()
1154 memset(inf, 0, sizeof(*inf)); in gc2155_get_module_inf()
1164 long ret = 0; in gc2155_ioctl()
1225 int ret = 0; in gc2155_s_stream()
1246 if (ret < 0) { in gc2155_s_stream()
1261 val = on ? 0x0f : 0; in gc2155_s_stream()
1262 ret = gc2155_write_reg(client, 0xf2, val); in gc2155_s_stream()
1283 int ret = 0; in gc2155_s_power()
1293 if (ret < 0) { in gc2155_s_power()
1319 return 0; in gc2155_set_test_pattern()
1332 return 0; in gc2155_s_ctrl()
1349 v4l2_subdev_get_try_format(sd, fh->pad, 0); in gc2155_open()
1350 const struct gc2155_mode *def_mode = &supported_modes[0]; in gc2155_open()
1362 return 0; in gc2155_open()
1383 return 0; in gc2155_runtime_suspend()
1394 return 0; in gc2155_g_mbus_config()
1404 return 0; in gc2155_g_frame_interval()
1412 const struct gc2155_mode *fsize = &gc2155->framesize_cfg[0]; in __gc2155_try_frame_size_fps()
1420 if (err < min_err && fsize->reg_list[0].addr) { in __gc2155_try_frame_size_fps()
1428 match = &gc2155->framesize_cfg[0]; in __gc2155_try_frame_size_fps()
1430 fsize = &gc2155->framesize_cfg[0]; in __gc2155_try_frame_size_fps()
1431 for (i = 0; i < gc2155->cfg_num; i++) { in __gc2155_try_frame_size_fps()
1456 int ret = 0; in gc2155_s_frame_interval()
1492 return 0; in gc2155_enum_frame_interval()
1547 dev_err(dev, "Wrong camera sensor id(0x%02x%02x)\n", in gc2155_check_sensor_id()
1552 dev_info(dev, "Detected GC2155 (0x%02x%02x) sensor\n", in gc2155_check_sensor_id()
1555 return 0; in gc2155_check_sensor_id()
1562 for (i = 0; i < GC2155_NUM_SUPPLIES; i++) in gc2155_configure_regulators()
1582 (DRIVER_VERSION & 0xff00) >> 8, in gc2155_probe()
1583 DRIVER_VERSION & 0x00ff); in gc2155_probe()
1603 gc2155->cur_mode = &supported_modes[0]; in gc2155_probe()
1637 V4L2_CID_PIXEL_RATE, 0, in gc2155_probe()
1644 0, 0, gc2155_test_pattern_menu); in gc2155_probe()
1672 if (ret < 0) in gc2155_probe()
1677 memset(facing, 0, sizeof(facing)); in gc2155_probe()
1678 if (strcmp(gc2155->module_facing, "back") == 0) in gc2155_probe()
1679 facing[0] = 'b'; in gc2155_probe()
1681 facing[0] = 'f'; in gc2155_probe()
1696 return 0; in gc2155_probe()
1726 return 0; in gc2155_remove()
1738 {"gc2155", 0},