• Home
  • Raw
  • Download

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_MAX 0x7fff
40 #define OV13B10_REG_EXPOSURE 0x3500
43 #define OV13B10_EXPOSURE_DEFAULT 0x40
46 #define OV13B10_REG_ANALOG_GAIN 0x3508
47 #define OV13B10_ANA_GAIN_MIN 0x80
48 #define OV13B10_ANA_GAIN_MAX 0x07c0
50 #define OV13B10_ANA_GAIN_DEFAULT 0x80
53 #define OV13B10_REG_DGTL_GAIN_H 0x350a
54 #define OV13B10_REG_DGTL_GAIN_M 0x350b
55 #define OV13B10_REG_DGTL_GAIN_L 0x350c
63 #define OV13B10_DGTL_GAIN_L_MASK 0x3
65 #define OV13B10_DGTL_GAIN_M_MASK 0xff
67 #define OV13B10_DGTL_GAIN_H_MASK 0x3
70 #define OV13B10_REG_TEST_PATTERN 0x5080
72 #define OV13B10_TEST_PATTERN_MASK 0xf3
76 #define OV13B10_REG_FORMAT1 0x3820
77 #define OV13B10_REG_FORMAT2 0x3821
80 #define OV13B10_REG_H_WIN_OFFSET 0x3811
83 #define OV13B10_REG_V_WIN_OFFSET 0x3813
122 {0x0103, 0x01},
123 {0x0303, 0x04},
124 {0x0305, 0xaf},
125 {0x0321, 0x00},
126 {0x0323, 0x04},
127 {0x0324, 0x01},
128 {0x0325, 0xa4},
129 {0x0326, 0x81},
130 {0x0327, 0x04},
131 {0x3012, 0x07},
132 {0x3013, 0x32},
133 {0x3107, 0x23},
134 {0x3501, 0x0c},
135 {0x3502, 0x10},
136 {0x3504, 0x08},
137 {0x3508, 0x07},
138 {0x3509, 0xc0},
139 {0x3600, 0x16},
140 {0x3601, 0x54},
141 {0x3612, 0x4e},
142 {0x3620, 0x00},
143 {0x3621, 0x68},
144 {0x3622, 0x66},
145 {0x3623, 0x03},
146 {0x3662, 0x92},
147 {0x3666, 0xbb},
148 {0x3667, 0x44},
149 {0x366e, 0xff},
150 {0x366f, 0xf3},
151 {0x3675, 0x44},
152 {0x3676, 0x00},
153 {0x367f, 0xe9},
154 {0x3681, 0x32},
155 {0x3682, 0x1f},
156 {0x3683, 0x0b},
157 {0x3684, 0x0b},
158 {0x3704, 0x0f},
159 {0x3706, 0x40},
160 {0x3708, 0x3b},
161 {0x3709, 0x72},
162 {0x370b, 0xa2},
163 {0x3714, 0x24},
164 {0x371a, 0x3e},
165 {0x3725, 0x42},
166 {0x3739, 0x12},
167 {0x3767, 0x00},
168 {0x377a, 0x0d},
169 {0x3789, 0x18},
170 {0x3790, 0x40},
171 {0x3791, 0xa2},
172 {0x37c2, 0x04},
173 {0x37c3, 0xf1},
174 {0x37d9, 0x0c},
175 {0x37da, 0x02},
176 {0x37dc, 0x02},
177 {0x37e1, 0x04},
178 {0x37e2, 0x0a},
179 {0x3800, 0x00},
180 {0x3801, 0x00},
181 {0x3802, 0x00},
182 {0x3803, 0x08},
183 {0x3804, 0x10},
184 {0x3805, 0x8f},
185 {0x3806, 0x0c},
186 {0x3807, 0x47},
187 {0x3808, 0x10},
188 {0x3809, 0x70},
189 {0x380a, 0x0c},
190 {0x380b, 0x30},
191 {0x380c, 0x04},
192 {0x380d, 0x98},
193 {0x380e, 0x0c},
194 {0x380f, 0x7c},
195 {0x3811, 0x0f},
196 {0x3813, 0x09},
197 {0x3814, 0x01},
198 {0x3815, 0x01},
199 {0x3816, 0x01},
200 {0x3817, 0x01},
201 {0x381f, 0x08},
202 {0x3820, 0x88},
203 {0x3821, 0x00},
204 {0x3822, 0x14},
205 {0x382e, 0xe6},
206 {0x3c80, 0x00},
207 {0x3c87, 0x01},
208 {0x3c8c, 0x19},
209 {0x3c8d, 0x1c},
210 {0x3ca0, 0x00},
211 {0x3ca1, 0x00},
212 {0x3ca2, 0x00},
213 {0x3ca3, 0x00},
214 {0x3ca4, 0x50},
215 {0x3ca5, 0x11},
216 {0x3ca6, 0x01},
217 {0x3ca7, 0x00},
218 {0x3ca8, 0x00},
219 {0x4008, 0x02},
220 {0x4009, 0x0f},
221 {0x400a, 0x01},
222 {0x400b, 0x19},
223 {0x4011, 0x21},
224 {0x4017, 0x08},
225 {0x4019, 0x04},
226 {0x401a, 0x58},
227 {0x4032, 0x1e},
228 {0x4050, 0x02},
229 {0x4051, 0x09},
230 {0x405e, 0x00},
231 {0x4066, 0x02},
232 {0x4501, 0x00},
233 {0x4502, 0x10},
234 {0x4505, 0x00},
235 {0x4800, 0x64},
236 {0x481b, 0x3e},
237 {0x481f, 0x30},
238 {0x4825, 0x34},
239 {0x4837, 0x0e},
240 {0x484b, 0x01},
241 {0x4883, 0x02},
242 {0x5000, 0xff},
243 {0x5001, 0x0f},
244 {0x5045, 0x20},
245 {0x5046, 0x20},
246 {0x5047, 0xa4},
247 {0x5048, 0x20},
248 {0x5049, 0xa4},
252 {0x0305, 0xaf},
253 {0x3501, 0x0c},
254 {0x3662, 0x92},
255 {0x3714, 0x24},
256 {0x3739, 0x12},
257 {0x37c2, 0x04},
258 {0x37d9, 0x0c},
259 {0x37e2, 0x0a},
260 {0x3800, 0x00},
261 {0x3801, 0x00},
262 {0x3802, 0x00},
263 {0x3803, 0x08},
264 {0x3804, 0x10},
265 {0x3805, 0x8f},
266 {0x3806, 0x0c},
267 {0x3807, 0x47},
268 {0x3808, 0x10},
269 {0x3809, 0x70},
270 {0x380a, 0x0c},
271 {0x380b, 0x30},
272 {0x380c, 0x04},
273 {0x380d, 0x98},
274 {0x380e, 0x0c},
275 {0x380f, 0x7c},
276 {0x3810, 0x00},
277 {0x3811, 0x0f},
278 {0x3812, 0x00},
279 {0x3813, 0x09},
280 {0x3814, 0x01},
281 {0x3816, 0x01},
282 {0x3820, 0x88},
283 {0x3c8c, 0x19},
284 {0x4008, 0x02},
285 {0x4009, 0x0f},
286 {0x4050, 0x02},
287 {0x4051, 0x09},
288 {0x4501, 0x00},
289 {0x4505, 0x00},
290 {0x4837, 0x0e},
291 {0x5000, 0xff},
292 {0x5001, 0x0f},
296 {0x0305, 0xaf},
297 {0x3501, 0x0c},
298 {0x3662, 0x92},
299 {0x3714, 0x24},
300 {0x3739, 0x12},
301 {0x37c2, 0x04},
302 {0x37d9, 0x0c},
303 {0x37e2, 0x0a},
304 {0x3800, 0x00},
305 {0x3801, 0x00},
306 {0x3802, 0x00},
307 {0x3803, 0x08},
308 {0x3804, 0x10},
309 {0x3805, 0x8f},
310 {0x3806, 0x0c},
311 {0x3807, 0x47},
312 {0x3808, 0x10},
313 {0x3809, 0x40},
314 {0x380a, 0x0c},
315 {0x380b, 0x30},
316 {0x380c, 0x04},
317 {0x380d, 0x98},
318 {0x380e, 0x0c},
319 {0x380f, 0x7c},
320 {0x3810, 0x00},
321 {0x3811, 0x27},
322 {0x3812, 0x00},
323 {0x3813, 0x09},
324 {0x3814, 0x01},
325 {0x3816, 0x01},
326 {0x3820, 0x88},
327 {0x3c8c, 0x19},
328 {0x4008, 0x02},
329 {0x4009, 0x0f},
330 {0x4050, 0x02},
331 {0x4051, 0x09},
332 {0x4501, 0x00},
333 {0x4505, 0x00},
334 {0x4837, 0x0e},
335 {0x5000, 0xff},
336 {0x5001, 0x0f},
340 {0x0305, 0xaf},
341 {0x3501, 0x0c},
342 {0x3662, 0x92},
343 {0x3714, 0x24},
344 {0x3739, 0x12},
345 {0x37c2, 0x04},
346 {0x37d9, 0x0c},
347 {0x37e2, 0x0a},
348 {0x3800, 0x00},
349 {0x3801, 0x00},
350 {0x3802, 0x00},
351 {0x3803, 0x08},
352 {0x3804, 0x10},
353 {0x3805, 0x8f},
354 {0x3806, 0x0c},
355 {0x3807, 0x47},
356 {0x3808, 0x10},
357 {0x3809, 0x40},
358 {0x380a, 0x09},
359 {0x380b, 0x24},
360 {0x380c, 0x04},
361 {0x380d, 0x98},
362 {0x380e, 0x0c},
363 {0x380f, 0x7c},
364 {0x3810, 0x00},
365 {0x3811, 0x27},
366 {0x3812, 0x01},
367 {0x3813, 0x8f},
368 {0x3814, 0x01},
369 {0x3816, 0x01},
370 {0x3820, 0x88},
371 {0x3c8c, 0x19},
372 {0x4008, 0x02},
373 {0x4009, 0x0f},
374 {0x4050, 0x02},
375 {0x4051, 0x09},
376 {0x4501, 0x00},
377 {0x4505, 0x00},
378 {0x4837, 0x0e},
379 {0x5000, 0xff},
380 {0x5001, 0x0f},
384 {0x0305, 0xaf},
385 {0x3501, 0x06},
386 {0x3662, 0x88},
387 {0x3714, 0x28},
388 {0x3739, 0x10},
389 {0x37c2, 0x14},
390 {0x37d9, 0x06},
391 {0x37e2, 0x0c},
392 {0x3800, 0x00},
393 {0x3801, 0x00},
394 {0x3802, 0x00},
395 {0x3803, 0x08},
396 {0x3804, 0x10},
397 {0x3805, 0x8f},
398 {0x3806, 0x0c},
399 {0x3807, 0x47},
400 {0x3808, 0x08},
401 {0x3809, 0x38},
402 {0x380a, 0x06},
403 {0x380b, 0x18},
404 {0x380c, 0x04},
405 {0x380d, 0x98},
406 {0x380e, 0x06},
407 {0x380f, 0x3e},
408 {0x3810, 0x00},
409 {0x3811, 0x07},
410 {0x3812, 0x00},
411 {0x3813, 0x05},
412 {0x3814, 0x03},
413 {0x3816, 0x03},
414 {0x3820, 0x8b},
415 {0x3c8c, 0x18},
416 {0x4008, 0x00},
417 {0x4009, 0x05},
418 {0x4050, 0x00},
419 {0x4051, 0x05},
420 {0x4501, 0x08},
421 {0x4505, 0x00},
422 {0x4837, 0x0e},
423 {0x5000, 0xfd},
424 {0x5001, 0x0d},
428 {0x0305, 0xaf},
429 {0x3501, 0x06},
430 {0x3662, 0x88},
431 {0x3714, 0x28},
432 {0x3739, 0x10},
433 {0x37c2, 0x14},
434 {0x37d9, 0x06},
435 {0x37e2, 0x0c},
436 {0x3800, 0x00},
437 {0x3801, 0x00},
438 {0x3802, 0x00},
439 {0x3803, 0x08},
440 {0x3804, 0x10},
441 {0x3805, 0x8f},
442 {0x3806, 0x0c},
443 {0x3807, 0x47},
444 {0x3808, 0x08},
445 {0x3809, 0x20},
446 {0x380a, 0x04},
447 {0x380b, 0x92},
448 {0x380c, 0x04},
449 {0x380d, 0x98},
450 {0x380e, 0x06},
451 {0x380f, 0x3e},
452 {0x3810, 0x00},
453 {0x3811, 0x13},
454 {0x3812, 0x00},
455 {0x3813, 0xc9},
456 {0x3814, 0x03},
457 {0x3816, 0x03},
458 {0x3820, 0x8b},
459 {0x3c8c, 0x18},
460 {0x4008, 0x00},
461 {0x4009, 0x05},
462 {0x4050, 0x00},
463 {0x4051, 0x05},
464 {0x4501, 0x08},
465 {0x4505, 0x00},
466 {0x4837, 0x0e},
467 {0x5000, 0xfd},
468 {0x5001, 0x0d},
481 #define OV13B10_LINK_FREQ_INDEX_0 0
614 __be32 data_be = 0; in ov13b10_read_reg()
622 msgs[0].addr = client->addr; in ov13b10_read_reg()
623 msgs[0].flags = 0; in ov13b10_read_reg()
624 msgs[0].len = 2; in ov13b10_read_reg()
625 msgs[0].buf = (u8 *)&reg_addr_be; in ov13b10_read_reg()
639 return 0; in ov13b10_read_reg()
654 buf[0] = reg >> 8; in ov13b10_write_reg()
655 buf[1] = reg & 0xff; in ov13b10_write_reg()
668 return 0; in ov13b10_write_reg()
679 for (i = 0; i < len; i++) { in ov13b10_write_regs()
684 "Failed to write reg 0x%4.4x. error = %d\n", in ov13b10_write_regs()
691 return 0; in ov13b10_write_regs()
703 const struct ov13b10_mode *default_mode = &supported_modes[0]; in ov13b10_open()
707 0); in ov13b10_open()
720 return 0; in ov13b10_open()
729 * 0x350C[7:6], 0x350B[7:0], 0x350A[1:0] in ov13b10_update_digital_gain()
859 return 0; in ov13b10_set_ctrl()
861 ret = 0; in ov13b10_set_ctrl()
893 "ctrl(id:0x%x,val:0x%x) is not handled\n", in ov13b10_set_ctrl()
912 if (code->index > 0) in ov13b10_enum_mbus_code()
917 return 0; in ov13b10_enum_mbus_code()
935 return 0; in ov13b10_enum_frame_size()
961 return 0; in ov13b10_do_get_pad_format()
1033 return 0; in ov13b10_set_pad_format()
1044 return 0; in ov13b10_identify_module()
1059 return 0; in ov13b10_identify_module()
1074 return 0; in ov13b10_power_off()
1084 if (ret < 0) { in ov13b10_power_on()
1091 if (ret < 0) { in ov13b10_power_on()
1098 gpiod_set_value_cansleep(ov13b10->reset, 0); in ov13b10_power_on()
1102 return 0; in ov13b10_power_on()
1161 int ret = 0; in ov13b10_set_stream()
1166 return 0; in ov13b10_set_stream()
1171 if (ret < 0) in ov13b10_set_stream()
1209 return 0; in ov13b10_suspend()
1228 return 0; in ov13b10_resume()
1291 0, in ov13b10_init_controls()
1296 pixel_rate_max = link_freq_to_pixel_rate(link_freq_menu_items[0]); in ov13b10_init_controls()
1297 pixel_rate_min = 0; in ov13b10_init_controls()
1340 0, 0, ov13b10_test_pattern_menu); in ov13b10_init_controls()
1343 V4L2_CID_HFLIP, 0, 1, 1, 0); in ov13b10_init_controls()
1345 V4L2_CID_VFLIP, 0, 1, 1, 0); in ov13b10_init_controls()
1365 return 0; in ov13b10_init_controls()
1405 return 0; in ov13b10_get_pm_resources()
1457 for (i = 0; i < ARRAY_SIZE(link_freq_menu_items); i++) { in ov13b10_check_hwcfg()
1458 for (j = 0; j < bus_cfg.nr_of_link_frequencies; j++) { in ov13b10_check_hwcfg()
1519 ov13b->cur_mode = &supported_modes[0]; in ov13b10_probe()
1551 if (ret < 0) in ov13b10_probe()
1554 return 0; in ov13b10_probe()