18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * A V4L2 driver for OmniVision OV7670 cameras. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright 2010 One Laptop Per Child 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __OV7670_H 98c2ecf20Sopenharmony_ci#define __OV7670_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cistruct ov7670_config { 128c2ecf20Sopenharmony_ci int min_width; /* Filter out smaller sizes */ 138c2ecf20Sopenharmony_ci int min_height; /* Filter out smaller sizes */ 148c2ecf20Sopenharmony_ci int clock_speed; /* External clock speed (MHz) */ 158c2ecf20Sopenharmony_ci bool use_smbus; /* Use smbus I/O instead of I2C */ 168c2ecf20Sopenharmony_ci bool pll_bypass; /* Choose whether to bypass the PLL */ 178c2ecf20Sopenharmony_ci bool pclk_hb_disable; /* Disable toggling pixclk during horizontal blanking */ 188c2ecf20Sopenharmony_ci}; 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#endif 21