Lines Matching defs:ths8200_write
78 static int ths8200_write(struct v4l2_subdev *sd, u8 reg, u8 val)
100 ths8200_write(sd, reg, (ths8200_read(sd, reg) & clr_mask) | val_mask);
117 ths8200_write(sd, reg->reg & 0xff, reg->val & 0xff);
198 ths8200_write(sd, THS8200_DATA_CNTL, 0x70);
203 ths8200_write(sd, THS8200_DTG1_MODE, 0x87);
210 ths8200_write(sd, THS8200_DTG1_Y_SYNC_MSB, 0x00);
211 ths8200_write(sd, THS8200_DTG1_CBCR_SYNC_MSB, 0x00);
225 ths8200_write(sd, THS8200_DTG1_SPEC_A, bt->hsync);
226 ths8200_write(sd, THS8200_DTG1_SPEC_B, bt->hfrontporch);
230 ths8200_write(sd, THS8200_DTG1_SPEC_C, 0x00);
235 ths8200_write(sd, THS8200_DTG1_SPEC_D_LSB,
238 ths8200_write(sd, THS8200_DTG1_SPEC_E_LSB, 0x00);
243 ths8200_write(sd, THS8200_DTG1_SPEC_DEH_MSB,
247 ths8200_write(sd, THS8200_DTG1_SPEC_K_LSB, (bt->hfrontporch) & 0xff);
248 ths8200_write(sd, THS8200_DTG1_SPEC_K_MSB,
252 ths8200_write(sd, THS8200_DTG1_SPEC_G_LSB, (htotal(bt)/2) & 0xff);
253 ths8200_write(sd, THS8200_DTG1_SPEC_G_MSB,
257 ths8200_write(sd, THS8200_DTG1_TOT_PIXELS_MSB, htotal(bt) >> 8);
258 ths8200_write(sd, THS8200_DTG1_TOT_PIXELS_LSB, htotal(bt) & 0xff);
264 ths8200_write(sd, THS8200_DTG1_FRAME_FIELD_SZ_MSB,
266 ths8200_write(sd, THS8200_DTG1_FRAME_SZ_LSB, vtotal(bt) & 0xff);
272 ths8200_write(sd, THS8200_DTG1_FIELD_SZ_LSB, 0xff);
292 ths8200_write(sd, THS8200_DTG2_BP3_4_MSB, ((vtotal(bt)) >> 4) & 0x70);
293 ths8200_write(sd, THS8200_DTG2_BP1_LSB, line_start_active_video & 0xff);
294 ths8200_write(sd, THS8200_DTG2_BP2_LSB, line_start_front_porch & 0xff);
295 ths8200_write(sd, THS8200_DTG2_BP3_LSB, (vtotal(bt)) & 0xff);
298 ths8200_write(sd, THS8200_DTG2_LINETYPE1, 0x90);
299 ths8200_write(sd, THS8200_DTG2_LINETYPE2, 0x90);
302 ths8200_write(sd, THS8200_DTG2_HLENGTH_LSB, bt->hsync & 0xff);
309 ths8200_write(sd, THS8200_DTG2_HLENGTH_HDLY_LSB, htotal(bt));
312 ths8200_write(sd, THS8200_DTG2_VLENGTH1_LSB, (bt->vsync + 1) & 0xff);
319 ths8200_write(sd, THS8200_DTG2_VDLY1_LSB, vtotal(bt) + 1);
324 ths8200_write(sd, THS8200_DTG2_VLENGTH2_LSB, 0x00);
325 ths8200_write(sd, THS8200_DTG2_VLENGTH2_MSB_VDLY2_MSB, 0x07);
326 ths8200_write(sd, THS8200_DTG2_VDLY2_LSB, 0xff);
330 ths8200_write(sd, THS8200_DTG2_HS_IN_DLY_MSB, 0);
331 ths8200_write(sd, THS8200_DTG2_HS_IN_DLY_LSB, 0);
332 ths8200_write(sd, THS8200_DTG2_VS_IN_DLY_MSB, 0);
333 ths8200_write(sd, THS8200_DTG2_VS_IN_DLY_LSB, 0);
349 ths8200_write(sd, THS8200_DTG2_CNTL, 0x44 | polarity);