Source
x
static int ov5670_write_reg(struct ov5670 *ov5670, u16 reg, unsigned int len,
// SPDX-License-Identifier: GPL-2.0
// Copyright (c) 2017 Intel Corporation.
/* vertical-timings from sensor */
/* default for 30 fps */
/* horizontal-timings from sensor */
/*
* Pixels-per-line(PPL) = Time-per-line * pixel-rate
* In OV5670, Time-per-line = HTS/SCLK.
* HTS is fixed for all resolutions, not recommended to change.
*/
/* Pixels per line */
/* Exposure controls from sensor */
/* Analog gain controls from sensor */
/* Digital gain controls from sensor */
/* Test Pattern Control */
/* Initial number of frames to skip to avoid possible garbage */
struct ov5670_reg {
u16 address;
u8 val;
};
struct ov5670_reg_list {
u32 num_of_regs;
const struct ov5670_reg *regs;
};
struct ov5670_link_freq_config {
u32 pixel_rate;
const struct ov5670_reg_list reg_list;
};
struct ov5670_mode {
/* Frame width in pixels */
u32 width;
/* Frame height in pixels */
u32 height;
/* Default vertical timining size */
u32 vts_def;