Lines Matching +full:0 +full:x3800

19 #define OV13B10_REG_MODE_SELECT		0x0100
20 #define OV13B10_MODE_STANDBY 0x00
21 #define OV13B10_MODE_STREAMING 0x01
23 #define OV13B10_REG_SOFTWARE_RST 0x0103
24 #define OV13B10_SOFTWARE_RST 0x01
27 #define OV13B10_REG_CHIP_ID 0x300a
28 #define OV13B10_CHIP_ID 0x560d42
31 #define OV13B10_REG_VTS 0x380e
32 #define OV13B10_VTS_30FPS 0x0c7c
33 #define OV13B10_VTS_60FPS 0x063e
34 #define OV13B10_VTS_120FPS 0x0320
35 #define OV13B10_VTS_MAX 0x7fff
41 #define OV13B10_REG_EXPOSURE 0x3500
44 #define OV13B10_EXPOSURE_DEFAULT 0x40
47 #define OV13B10_REG_ANALOG_GAIN 0x3508
48 #define OV13B10_ANA_GAIN_MIN 0x80
49 #define OV13B10_ANA_GAIN_MAX 0x07c0
51 #define OV13B10_ANA_GAIN_DEFAULT 0x80
54 #define OV13B10_REG_DGTL_GAIN_H 0x350a
55 #define OV13B10_REG_DGTL_GAIN_M 0x350b
56 #define OV13B10_REG_DGTL_GAIN_L 0x350c
64 #define OV13B10_DGTL_GAIN_L_MASK 0x3
66 #define OV13B10_DGTL_GAIN_M_MASK 0xff
68 #define OV13B10_DGTL_GAIN_H_MASK 0x3
71 #define OV13B10_REG_TEST_PATTERN 0x5080
73 #define OV13B10_TEST_PATTERN_MASK 0xf3
77 #define OV13B10_REG_FORMAT1 0x3820
78 #define OV13B10_REG_FORMAT2 0x3821
81 #define OV13B10_REG_H_WIN_OFFSET 0x3811
84 #define OV13B10_REG_V_WIN_OFFSET 0x3813
123 {0x0103, 0x01},
124 {0x0303, 0x04},
125 {0x0305, 0xaf},
126 {0x0321, 0x00},
127 {0x0323, 0x04},
128 {0x0324, 0x01},
129 {0x0325, 0xa4},
130 {0x0326, 0x81},
131 {0x0327, 0x04},
132 {0x3012, 0x07},
133 {0x3013, 0x32},
134 {0x3107, 0x23},
135 {0x3501, 0x0c},
136 {0x3502, 0x10},
137 {0x3504, 0x08},
138 {0x3508, 0x07},
139 {0x3509, 0xc0},
140 {0x3600, 0x16},
141 {0x3601, 0x54},
142 {0x3612, 0x4e},
143 {0x3620, 0x00},
144 {0x3621, 0x68},
145 {0x3622, 0x66},
146 {0x3623, 0x03},
147 {0x3662, 0x92},
148 {0x3666, 0xbb},
149 {0x3667, 0x44},
150 {0x366e, 0xff},
151 {0x366f, 0xf3},
152 {0x3675, 0x44},
153 {0x3676, 0x00},
154 {0x367f, 0xe9},
155 {0x3681, 0x32},
156 {0x3682, 0x1f},
157 {0x3683, 0x0b},
158 {0x3684, 0x0b},
159 {0x3704, 0x0f},
160 {0x3706, 0x40},
161 {0x3708, 0x3b},
162 {0x3709, 0x72},
163 {0x370b, 0xa2},
164 {0x3714, 0x24},
165 {0x371a, 0x3e},
166 {0x3725, 0x42},
167 {0x3739, 0x12},
168 {0x3767, 0x00},
169 {0x377a, 0x0d},
170 {0x3789, 0x18},
171 {0x3790, 0x40},
172 {0x3791, 0xa2},
173 {0x37c2, 0x04},
174 {0x37c3, 0xf1},
175 {0x37d9, 0x0c},
176 {0x37da, 0x02},
177 {0x37dc, 0x02},
178 {0x37e1, 0x04},
179 {0x37e2, 0x0a},
180 {0x3800, 0x00},
181 {0x3801, 0x00},
182 {0x3802, 0x00},
183 {0x3803, 0x08},
184 {0x3804, 0x10},
185 {0x3805, 0x8f},
186 {0x3806, 0x0c},
187 {0x3807, 0x47},
188 {0x3808, 0x10},
189 {0x3809, 0x70},
190 {0x380a, 0x0c},
191 {0x380b, 0x30},
192 {0x380c, 0x04},
193 {0x380d, 0x98},
194 {0x380e, 0x0c},
195 {0x380f, 0x7c},
196 {0x3811, 0x0f},
197 {0x3813, 0x09},
198 {0x3814, 0x01},
199 {0x3815, 0x01},
200 {0x3816, 0x01},
201 {0x3817, 0x01},
202 {0x381f, 0x08},
203 {0x3820, 0x88},
204 {0x3821, 0x00},
205 {0x3822, 0x14},
206 {0x382e, 0xe6},
207 {0x3c80, 0x00},
208 {0x3c87, 0x01},
209 {0x3c8c, 0x19},
210 {0x3c8d, 0x1c},
211 {0x3ca0, 0x00},
212 {0x3ca1, 0x00},
213 {0x3ca2, 0x00},
214 {0x3ca3, 0x00},
215 {0x3ca4, 0x50},
216 {0x3ca5, 0x11},
217 {0x3ca6, 0x01},
218 {0x3ca7, 0x00},
219 {0x3ca8, 0x00},
220 {0x4008, 0x02},
221 {0x4009, 0x0f},
222 {0x400a, 0x01},
223 {0x400b, 0x19},
224 {0x4011, 0x21},
225 {0x4017, 0x08},
226 {0x4019, 0x04},
227 {0x401a, 0x58},
228 {0x4032, 0x1e},
229 {0x4050, 0x02},
230 {0x4051, 0x09},
231 {0x405e, 0x00},
232 {0x4066, 0x02},
233 {0x4501, 0x00},
234 {0x4502, 0x10},
235 {0x4505, 0x00},
236 {0x4800, 0x64},
237 {0x481b, 0x3e},
238 {0x481f, 0x30},
239 {0x4825, 0x34},
240 {0x4837, 0x0e},
241 {0x484b, 0x01},
242 {0x4883, 0x02},
243 {0x5000, 0xff},
244 {0x5001, 0x0f},
245 {0x5045, 0x20},
246 {0x5046, 0x20},
247 {0x5047, 0xa4},
248 {0x5048, 0x20},
249 {0x5049, 0xa4},
253 {0x0305, 0xaf},
254 {0x3501, 0x0c},
255 {0x3662, 0x92},
256 {0x3714, 0x24},
257 {0x3739, 0x12},
258 {0x37c2, 0x04},
259 {0x37d9, 0x0c},
260 {0x37e2, 0x0a},
261 {0x3800, 0x00},
262 {0x3801, 0x00},
263 {0x3802, 0x00},
264 {0x3803, 0x08},
265 {0x3804, 0x10},
266 {0x3805, 0x8f},
267 {0x3806, 0x0c},
268 {0x3807, 0x47},
269 {0x3808, 0x10},
270 {0x3809, 0x70},
271 {0x380a, 0x0c},
272 {0x380b, 0x30},
273 {0x380c, 0x04},
274 {0x380d, 0x98},
275 {0x380e, 0x0c},
276 {0x380f, 0x7c},
277 {0x3810, 0x00},
278 {0x3811, 0x0f},
279 {0x3812, 0x00},
280 {0x3813, 0x09},
281 {0x3814, 0x01},
282 {0x3816, 0x01},
283 {0x3820, 0x88},
284 {0x3c8c, 0x19},
285 {0x4008, 0x02},
286 {0x4009, 0x0f},
287 {0x4050, 0x02},
288 {0x4051, 0x09},
289 {0x4501, 0x00},
290 {0x4505, 0x00},
291 {0x4837, 0x0e},
292 {0x5000, 0xff},
293 {0x5001, 0x0f},
297 {0x0305, 0xaf},
298 {0x3501, 0x0c},
299 {0x3662, 0x92},
300 {0x3714, 0x24},
301 {0x3739, 0x12},
302 {0x37c2, 0x04},
303 {0x37d9, 0x0c},
304 {0x37e2, 0x0a},
305 {0x3800, 0x00},
306 {0x3801, 0x00},
307 {0x3802, 0x00},
308 {0x3803, 0x08},
309 {0x3804, 0x10},
310 {0x3805, 0x8f},
311 {0x3806, 0x0c},
312 {0x3807, 0x47},
313 {0x3808, 0x10},
314 {0x3809, 0x40},
315 {0x380a, 0x0c},
316 {0x380b, 0x30},
317 {0x380c, 0x04},
318 {0x380d, 0x98},
319 {0x380e, 0x0c},
320 {0x380f, 0x7c},
321 {0x3810, 0x00},
322 {0x3811, 0x27},
323 {0x3812, 0x00},
324 {0x3813, 0x09},
325 {0x3814, 0x01},
326 {0x3816, 0x01},
327 {0x3820, 0x88},
328 {0x3c8c, 0x19},
329 {0x4008, 0x02},
330 {0x4009, 0x0f},
331 {0x4050, 0x02},
332 {0x4051, 0x09},
333 {0x4501, 0x00},
334 {0x4505, 0x00},
335 {0x4837, 0x0e},
336 {0x5000, 0xff},
337 {0x5001, 0x0f},
341 {0x0305, 0xaf},
342 {0x3501, 0x0c},
343 {0x3662, 0x92},
344 {0x3714, 0x24},
345 {0x3739, 0x12},
346 {0x37c2, 0x04},
347 {0x37d9, 0x0c},
348 {0x37e2, 0x0a},
349 {0x3800, 0x00},
350 {0x3801, 0x00},
351 {0x3802, 0x00},
352 {0x3803, 0x08},
353 {0x3804, 0x10},
354 {0x3805, 0x8f},
355 {0x3806, 0x0c},
356 {0x3807, 0x47},
357 {0x3808, 0x10},
358 {0x3809, 0x40},
359 {0x380a, 0x09},
360 {0x380b, 0x24},
361 {0x380c, 0x04},
362 {0x380d, 0x98},
363 {0x380e, 0x0c},
364 {0x380f, 0x7c},
365 {0x3810, 0x00},
366 {0x3811, 0x27},
367 {0x3812, 0x01},
368 {0x3813, 0x8f},
369 {0x3814, 0x01},
370 {0x3816, 0x01},
371 {0x3820, 0x88},
372 {0x3c8c, 0x19},
373 {0x4008, 0x02},
374 {0x4009, 0x0f},
375 {0x4050, 0x02},
376 {0x4051, 0x09},
377 {0x4501, 0x00},
378 {0x4505, 0x00},
379 {0x4837, 0x0e},
380 {0x5000, 0xff},
381 {0x5001, 0x0f},
385 {0x0305, 0xaf},
386 {0x3501, 0x06},
387 {0x3662, 0x88},
388 {0x3714, 0x28},
389 {0x3739, 0x10},
390 {0x37c2, 0x14},
391 {0x37d9, 0x06},
392 {0x37e2, 0x0c},
393 {0x3800, 0x00},
394 {0x3801, 0x00},
395 {0x3802, 0x00},
396 {0x3803, 0x08},
397 {0x3804, 0x10},
398 {0x3805, 0x8f},
399 {0x3806, 0x0c},
400 {0x3807, 0x47},
401 {0x3808, 0x08},
402 {0x3809, 0x38},
403 {0x380a, 0x06},
404 {0x380b, 0x18},
405 {0x380c, 0x04},
406 {0x380d, 0x98},
407 {0x380e, 0x06},
408 {0x380f, 0x3e},
409 {0x3810, 0x00},
410 {0x3811, 0x07},
411 {0x3812, 0x00},
412 {0x3813, 0x05},
413 {0x3814, 0x03},
414 {0x3816, 0x03},
415 {0x3820, 0x8b},
416 {0x3c8c, 0x18},
417 {0x4008, 0x00},
418 {0x4009, 0x05},
419 {0x4050, 0x00},
420 {0x4051, 0x05},
421 {0x4501, 0x08},
422 {0x4505, 0x00},
423 {0x4837, 0x0e},
424 {0x5000, 0xfd},
425 {0x5001, 0x0d},
429 {0x0305, 0xaf},
430 {0x3501, 0x06},
431 {0x3662, 0x88},
432 {0x3714, 0x28},
433 {0x3739, 0x10},
434 {0x37c2, 0x14},
435 {0x37d9, 0x06},
436 {0x37e2, 0x0c},
437 {0x3800, 0x00},
438 {0x3801, 0x00},
439 {0x3802, 0x00},
440 {0x3803, 0x08},
441 {0x3804, 0x10},
442 {0x3805, 0x8f},
443 {0x3806, 0x0c},
444 {0x3807, 0x47},
445 {0x3808, 0x08},
446 {0x3809, 0x20},
447 {0x380a, 0x04},
448 {0x380b, 0x92},
449 {0x380c, 0x04},
450 {0x380d, 0x98},
451 {0x380e, 0x06},
452 {0x380f, 0x3e},
453 {0x3810, 0x00},
454 {0x3811, 0x13},
455 {0x3812, 0x00},
456 {0x3813, 0xc9},
457 {0x3814, 0x03},
458 {0x3816, 0x03},
459 {0x3820, 0x8b},
460 {0x3c8c, 0x18},
461 {0x4008, 0x00},
462 {0x4009, 0x05},
463 {0x4050, 0x00},
464 {0x4051, 0x05},
465 {0x4501, 0x08},
466 {0x4505, 0x00},
467 {0x4837, 0x0e},
468 {0x5000, 0xfd},
469 {0x5001, 0x0d},
473 {0x0305, 0xaf},
474 {0x3011, 0x7c},
475 {0x3501, 0x03},
476 {0x3502, 0x00},
477 {0x3662, 0x88},
478 {0x3714, 0x28},
479 {0x3739, 0x10},
480 {0x37c2, 0x14},
481 {0x37d9, 0x06},
482 {0x37e2, 0x0c},
483 {0x37e4, 0x00},
484 {0x3800, 0x02},
485 {0x3801, 0xe4},
486 {0x3802, 0x03},
487 {0x3803, 0x48},
488 {0x3804, 0x0d},
489 {0x3805, 0xab},
490 {0x3806, 0x09},
491 {0x3807, 0x60},
492 {0x3808, 0x05},
493 {0x3809, 0x54},
494 {0x380a, 0x03},
495 {0x380b, 0x00},
496 {0x380c, 0x04},
497 {0x380d, 0x8e},
498 {0x380e, 0x03},
499 {0x380f, 0x20},
500 {0x3811, 0x07},
501 {0x3813, 0x07},
502 {0x3814, 0x03},
503 {0x3816, 0x03},
504 {0x3820, 0x8b},
505 {0x3c8c, 0x18},
506 {0x4008, 0x00},
507 {0x4009, 0x05},
508 {0x4050, 0x00},
509 {0x4051, 0x05},
510 {0x4501, 0x08},
511 {0x4505, 0x04},
512 {0x5000, 0xfd},
513 {0x5001, 0x0d},
526 #define OV13B10_LINK_FREQ_INDEX_0 0
667 __be32 data_be = 0; in ov13b10_read_reg()
675 msgs[0].addr = client->addr; in ov13b10_read_reg()
676 msgs[0].flags = 0; in ov13b10_read_reg()
677 msgs[0].len = 2; in ov13b10_read_reg()
678 msgs[0].buf = (u8 *)&reg_addr_be; in ov13b10_read_reg()
692 return 0; in ov13b10_read_reg()
707 buf[0] = reg >> 8; in ov13b10_write_reg()
708 buf[1] = reg & 0xff; in ov13b10_write_reg()
721 return 0; in ov13b10_write_reg()
732 for (i = 0; i < len; i++) { in ov13b10_write_regs()
737 "Failed to write reg 0x%4.4x. error = %d\n", in ov13b10_write_regs()
744 return 0; in ov13b10_write_regs()
756 const struct ov13b10_mode *default_mode = &supported_modes[0]; in ov13b10_open()
759 0); in ov13b10_open()
772 return 0; in ov13b10_open()
781 * 0x350C[7:6], 0x350B[7:0], 0x350A[1:0] in ov13b10_update_digital_gain()
911 return 0; in ov13b10_set_ctrl()
913 ret = 0; in ov13b10_set_ctrl()
945 "ctrl(id:0x%x,val:0x%x) is not handled\n", in ov13b10_set_ctrl()
964 if (code->index > 0) in ov13b10_enum_mbus_code()
969 return 0; in ov13b10_enum_mbus_code()
987 return 0; in ov13b10_enum_frame_size()
1012 return 0; in ov13b10_do_get_pad_format()
1084 return 0; in ov13b10_set_pad_format()
1095 return 0; in ov13b10_identify_module()
1110 return 0; in ov13b10_identify_module()
1125 return 0; in ov13b10_power_off()
1135 if (ret < 0) { in ov13b10_power_on()
1142 if (ret < 0) { in ov13b10_power_on()
1149 gpiod_set_value_cansleep(ov13b10->reset, 0); in ov13b10_power_on()
1153 return 0; in ov13b10_power_on()
1212 int ret = 0; in ov13b10_set_stream()
1218 if (ret < 0) in ov13b10_set_stream()
1249 return 0; in ov13b10_suspend()
1309 0, in ov13b10_init_controls()
1314 pixel_rate_max = link_freq_to_pixel_rate(link_freq_menu_items[0]); in ov13b10_init_controls()
1315 pixel_rate_min = 0; in ov13b10_init_controls()
1358 0, 0, ov13b10_test_pattern_menu); in ov13b10_init_controls()
1361 V4L2_CID_HFLIP, 0, 1, 1, 0); in ov13b10_init_controls()
1363 V4L2_CID_VFLIP, 0, 1, 1, 0); in ov13b10_init_controls()
1383 return 0; in ov13b10_init_controls()
1423 return 0; in ov13b10_get_pm_resources()
1475 for (i = 0; i < ARRAY_SIZE(link_freq_menu_items); i++) { in ov13b10_check_hwcfg()
1476 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov13b10_check_hwcfg()
1537 ov13b->cur_mode = &supported_modes[0]; in ov13b10_probe()
1569 if (ret < 0) in ov13b10_probe()
1572 return 0; in ov13b10_probe()