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