Lines Matching +full:0 +full:x4301
23 #define OV01A10_REG_CHIP_ID 0x300a
24 #define OV01A10_CHIP_ID 0x560141
26 #define OV01A10_REG_MODE_SELECT 0x0100
27 #define OV01A10_MODE_STANDBY 0x00
28 #define OV01A10_MODE_STREAMING 0x01
37 #define OV01A10_REG_VTS 0x380e
38 #define OV01A10_VTS_DEF 0x0380
39 #define OV01A10_VTS_MIN 0x0380
40 #define OV01A10_VTS_MAX 0xffff
44 #define OV01A10_REG_EXPOSURE 0x3501
50 #define OV01A10_REG_ANALOG_GAIN 0x3508
51 #define OV01A10_ANAL_GAIN_MIN 0x100
52 #define OV01A10_ANAL_GAIN_MAX 0xffff
56 #define OV01A10_REG_DIGITAL_GAIN_B 0x350a
57 #define OV01A10_REG_DIGITAL_GAIN_GB 0x3510
58 #define OV01A10_REG_DIGITAL_GAIN_GR 0x3513
59 #define OV01A10_REG_DIGITAL_GAIN_R 0x3516
60 #define OV01A10_DGTL_GAIN_MIN 0
61 #define OV01A10_DGTL_GAIN_MAX 0x3ffff
66 #define OV01A10_REG_TEST_PATTERN 0x4503
68 #define OV01A10_LINK_FREQ_400MHZ_INDEX 0
71 #define OV01A10_REG_FORMAT1 0x3820
76 #define OV01A10_REG_X_WIN 0x3811
77 #define OV01A10_REG_Y_WIN 0x3813
105 {0x0103, 0x01},
106 {0x0302, 0x00},
107 {0x0303, 0x06},
108 {0x0304, 0x01},
109 {0x0305, 0xe0},
110 {0x0306, 0x00},
111 {0x0308, 0x01},
112 {0x0309, 0x00},
113 {0x030c, 0x01},
114 {0x0322, 0x01},
115 {0x0323, 0x06},
116 {0x0324, 0x01},
117 {0x0325, 0x68},
121 {0x3002, 0xa1},
122 {0x301e, 0xf0},
123 {0x3022, 0x01},
124 {0x3501, 0x03},
125 {0x3502, 0x78},
126 {0x3504, 0x0c},
127 {0x3508, 0x01},
128 {0x3509, 0x00},
129 {0x3601, 0xc0},
130 {0x3603, 0x71},
131 {0x3610, 0x68},
132 {0x3611, 0x86},
133 {0x3640, 0x10},
134 {0x3641, 0x80},
135 {0x3642, 0xdc},
136 {0x3646, 0x55},
137 {0x3647, 0x57},
138 {0x364b, 0x00},
139 {0x3653, 0x10},
140 {0x3655, 0x00},
141 {0x3656, 0x00},
142 {0x365f, 0x0f},
143 {0x3661, 0x45},
144 {0x3662, 0x24},
145 {0x3663, 0x11},
146 {0x3664, 0x07},
147 {0x3709, 0x34},
148 {0x370b, 0x6f},
149 {0x3714, 0x22},
150 {0x371b, 0x27},
151 {0x371c, 0x67},
152 {0x371d, 0xa7},
153 {0x371e, 0xe7},
154 {0x3730, 0x81},
155 {0x3733, 0x10},
156 {0x3734, 0x40},
157 {0x3737, 0x04},
158 {0x3739, 0x1c},
159 {0x3767, 0x00},
160 {0x376c, 0x81},
161 {0x3772, 0x14},
162 {0x37c2, 0x04},
163 {0x37d8, 0x03},
164 {0x37d9, 0x0c},
165 {0x37e0, 0x00},
166 {0x37e1, 0x08},
167 {0x37e2, 0x10},
168 {0x37e3, 0x04},
169 {0x37e4, 0x04},
170 {0x37e5, 0x03},
171 {0x37e6, 0x04},
172 {0x3800, 0x00},
173 {0x3801, 0x00},
174 {0x3802, 0x00},
175 {0x3803, 0x00},
176 {0x3804, 0x05},
177 {0x3805, 0x0f},
178 {0x3806, 0x03},
179 {0x3807, 0x2f},
180 {0x3808, 0x05},
181 {0x3809, 0x00},
182 {0x380a, 0x03},
183 {0x380b, 0x20},
184 {0x380c, 0x02},
185 {0x380d, 0xe8},
186 {0x380e, 0x03},
187 {0x380f, 0x80},
188 {0x3810, 0x00},
189 {0x3811, 0x08},
190 {0x3812, 0x00},
191 {0x3813, 0x08},
192 {0x3814, 0x01},
193 {0x3815, 0x01},
194 {0x3816, 0x01},
195 {0x3817, 0x01},
196 {0x3820, 0xa0},
197 {0x3822, 0x13},
198 {0x3832, 0x28},
199 {0x3833, 0x10},
200 {0x3b00, 0x00},
201 {0x3c80, 0x00},
202 {0x3c88, 0x02},
203 {0x3c8c, 0x07},
204 {0x3c8d, 0x40},
205 {0x3cc7, 0x80},
206 {0x4000, 0xc3},
207 {0x4001, 0xe0},
208 {0x4003, 0x40},
209 {0x4008, 0x02},
210 {0x4009, 0x19},
211 {0x400a, 0x01},
212 {0x400b, 0x6c},
213 {0x4011, 0x00},
214 {0x4041, 0x00},
215 {0x4300, 0xff},
216 {0x4301, 0x00},
217 {0x4302, 0x0f},
218 {0x4503, 0x00},
219 {0x4601, 0x50},
220 {0x4800, 0x64},
221 {0x481f, 0x34},
222 {0x4825, 0x33},
223 {0x4837, 0x11},
224 {0x4881, 0x40},
225 {0x4883, 0x01},
226 {0x4890, 0x00},
227 {0x4901, 0x00},
228 {0x4902, 0x00},
229 {0x4b00, 0x2a},
230 {0x4b0d, 0x00},
231 {0x450a, 0x04},
232 {0x450b, 0x00},
233 {0x5000, 0x65},
234 {0x5200, 0x18},
235 {0x5004, 0x00},
236 {0x5080, 0x40},
237 {0x0305, 0xf4},
238 {0x0325, 0xc2},
302 u8 data_buf[4] = {0}; in ov01a10_read_reg()
303 int ret = 0; in ov01a10_read_reg()
309 msgs[0].addr = client->addr; in ov01a10_read_reg()
310 msgs[0].flags = 0; in ov01a10_read_reg()
311 msgs[0].len = sizeof(addr_buf); in ov01a10_read_reg()
312 msgs[0].buf = addr_buf; in ov01a10_read_reg()
321 return ret < 0 ? ret : -EIO; in ov01a10_read_reg()
325 return 0; in ov01a10_read_reg()
332 int ret = 0; in ov01a10_write_reg()
342 return ret < 0 ? ret : -EIO; in ov01a10_write_reg()
344 return 0; in ov01a10_write_reg()
352 int ret = 0; in ov01a10_write_reg_list()
354 for (i = 0; i < r_list->num_of_regs; i++) { in ov01a10_write_reg_list()
359 "write reg 0x%4.4x err = %d\n", in ov01a10_write_reg_list()
365 return 0; in ov01a10_write_reg_list()
372 int ret = 0; in ov01a10_update_digital_gain()
402 return 0; in ov01a10_test_pattern()
409 /* for vflip and hflip, use 0x9 as window offset to keep the bayer */
415 offset = hflip ? 0x9 : 0x8; in ov01a10_set_hflip()
424 val = hflip ? val | FIELD_PREP(OV01A10_HFLIP_MASK, 0x1) : in ov01a10_set_hflip()
435 offset = vflip ? 0x9 : 0x8; in ov01a10_set_vflip()
444 val = vflip ? val | FIELD_PREP(OV01A10_VFLIP_MASK, 0x1) : in ov01a10_set_vflip()
456 int ret = 0; in ov01a10_set_ctrl()
468 return 0; in ov01a10_set_ctrl()
524 int ret = 0; in ov01a10_init_controls()
542 size - 1, 0, in ov01a10_init_controls()
548 V4L2_CID_PIXEL_RATE, 0, in ov01a10_init_controls()
583 0, 0, ov01a10_test_pattern_menu); in ov01a10_init_controls()
586 0, 1, 1, 0); in ov01a10_init_controls()
588 0, 1, 1, 0); in ov01a10_init_controls()
602 return 0; in ov01a10_init_controls()
624 int ret = 0; in ov01a10_start_streaming()
656 int ret = 0; in ov01a10_stop_streaming()
669 int ret = 0; in ov01a10_set_stream()
675 if (ret < 0) in ov01a10_set_stream()
729 return 0; in ov01a10_set_format()
745 return 0; in ov01a10_init_state()
752 if (code->index > 0) in ov01a10_enum_mbus_code()
757 return 0; in ov01a10_enum_mbus_code()
773 return 0; in ov01a10_enum_frame_size()
786 sel->r.top = 0; in ov01a10_get_selection()
787 sel->r.left = 0; in ov01a10_get_selection()
790 return 0; in ov01a10_get_selection()
799 return 0; in ov01a10_get_selection()
853 return 0; in ov01a10_identify_module()
872 int ret = 0; in ov01a10_probe()
886 ov01a10->cur_mode = &supported_modes[0]; in ov01a10_probe()
922 if (ret < 0) { in ov01a10_probe()
927 return 0; in ov01a10_probe()