^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * A V4L2 driver for OmniVision OV7670 cameras.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Copyright 2010 One Laptop Per Child
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #ifndef __OV7670_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define __OV7670_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct ov7670_config {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) int min_width; /* Filter out smaller sizes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) int min_height; /* Filter out smaller sizes */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) int clock_speed; /* External clock speed (MHz) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) bool use_smbus; /* Use smbus I/O instead of I2C */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) bool pll_bypass; /* Choose whether to bypass the PLL */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) bool pclk_hb_disable; /* Disable toggling pixclk during horizontal blanking */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #endif