Lines Matching refs:ov2640_write_reg
479 static int ov2640_write_reg(const struct i2c_dt_spec *spec, uint8_t reg_addr, in ov2640_write_reg() function
534 err = ov2640_write_reg(&cfg->i2c, regs[i].addr, regs[i].value); in ov2640_write_all()
549 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_soft_reset()
552 ret |= ov2640_write_reg(&cfg->i2c, COM7, COM7_SRST); in ov2640_soft_reset()
569 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_DSP); in ov2640_set_level()
572 ret |= ov2640_write_reg(&cfg->i2c, regs[0][i], regs[level][i]); in ov2640_set_level()
627 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_DSP); in ov2640_set_output_format()
631 ret |= ov2640_write_reg(&cfg->i2c, IMAGE_MODE, IMAGE_MODE_JPEG_EN); in ov2640_set_output_format()
634 ret |= ov2640_write_reg(&cfg->i2c, IMAGE_MODE, IMAGE_MODE_RGB565); in ov2640_set_output_format()
650 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_DSP); in ov2640_set_quality()
653 ret |= ov2640_write_reg(&cfg->i2c, QS, qs); in ov2640_set_quality()
666 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_set_colorbar()
677 ret |= ov2640_write_reg(&cfg->i2c, COM7, reg); in ov2640_set_colorbar()
690 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_set_white_bal()
701 ret |= ov2640_write_reg(&cfg->i2c, CTRL1, reg); in ov2640_set_white_bal()
714 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_set_gain_ctrl()
725 ret |= ov2640_write_reg(&cfg->i2c, COM8, reg); in ov2640_set_gain_ctrl()
738 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_set_exposure_ctrl()
749 ret |= ov2640_write_reg(&cfg->i2c, COM8, reg); in ov2640_set_exposure_ctrl()
763 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_set_horizontal_mirror()
774 ret |= ov2640_write_reg(&cfg->i2c, REG04, reg); in ov2640_set_horizontal_mirror()
787 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_set_vertical_flip()
798 ret |= ov2640_write_reg(&cfg->i2c, REG04, reg); in ov2640_set_vertical_flip()
813 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_DSP); in ov2640_set_resolution()
814 ret |= ov2640_write_reg(&cfg->i2c, R_BYPASS, R_BYPASS_DSP_BYPAS); in ov2640_set_resolution()
817 ret |= ov2640_write_reg(&cfg->i2c, ZMOW, (w >> 2) & 0xFF); /* OUTW[7:0] (real/4) */ in ov2640_set_resolution()
818 ret |= ov2640_write_reg(&cfg->i2c, ZMOH, (h >> 2) & 0xFF); /* OUTH[7:0] (real/4) */ in ov2640_set_resolution()
819 ret |= ov2640_write_reg(&cfg->i2c, ZMHH, ((h >> 8) & 0x04) | in ov2640_set_resolution()
823 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_set_resolution()
824 ret |= ov2640_write_reg(&cfg->i2c, CLKRC, 0x87); in ov2640_set_resolution()
830 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_DSP); in ov2640_set_resolution()
831 ret |= ov2640_write_reg(&cfg->i2c, R_BYPASS, R_BYPASS_DSP_EN); in ov2640_set_resolution()
845 ret |= ov2640_write_reg(&cfg->i2c, BANK_SEL, BANK_SEL_SENSOR); in ov2640_check_connection()