linux/drivers/media/i2c/ov9640.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * OmniVision OV96xx Camera Header File
 *
 * Copyright (C) 2009 Marek Vasut <[email protected]>
 */

#ifndef	__DRIVERS_MEDIA_VIDEO_OV9640_H__
#define __DRIVERS_MEDIA_VIDEO_OV9640_H__

/* Register definitions */
#define OV9640_GAIN
#define OV9640_BLUE
#define OV9640_RED
#define OV9640_VFER
#define OV9640_COM1
#define OV9640_BAVE
#define OV9640_GEAVE
#define OV9640_RSID
#define OV9640_RAVE
#define OV9640_COM2
#define OV9640_PID
#define OV9640_VER
#define OV9640_COM3
#define OV9640_COM4
#define OV9640_COM5
#define OV9640_COM6
#define OV9640_AECH
#define OV9640_CLKRC
#define OV9640_COM7
#define OV9640_COM8
#define OV9640_COM9
#define OV9640_COM10
/* 0x16 - RESERVED */
#define OV9640_HSTART
#define OV9640_HSTOP
#define OV9640_VSTART
#define OV9640_VSTOP
#define OV9640_PSHFT
#define OV9640_MIDH
#define OV9640_MIDL
#define OV9640_MVFP
#define OV9640_LAEC
#define OV9640_BOS
#define OV9640_GBOS
#define OV9640_GROS
#define OV9640_ROS
#define OV9640_AEW
#define OV9640_AEB
#define OV9640_VPT
#define OV9640_BBIAS
#define OV9640_GBBIAS
/* 0x29 - RESERVED */
#define OV9640_EXHCH
#define OV9640_EXHCL
#define OV9640_RBIAS
#define OV9640_ADVFL
#define OV9640_ADVFH
#define OV9640_YAVE
#define OV9640_HSYST
#define OV9640_HSYEN
#define OV9640_HREF
#define OV9640_CHLF
#define OV9640_ARBLM
/* 0x35..0x36 - RESERVED */
#define OV9640_ADC
#define OV9640_ACOM
#define OV9640_OFON
#define OV9640_TSLB
#define OV9640_COM11
#define OV9640_COM12
#define OV9640_COM13
#define OV9640_COM14
#define OV9640_EDGE
#define OV9640_COM15
#define OV9640_COM16
#define OV9640_COM17
/* 0x43..0x4e - RESERVED */
#define OV9640_MTX1
#define OV9640_MTX2
#define OV9640_MTX3
#define OV9640_MTX4
#define OV9640_MTX5
#define OV9640_MTX6
#define OV9640_MTX7
#define OV9640_MTX8
#define OV9640_MTX9
#define OV9640_MTXS
/* 0x59..0x61 - RESERVED */
#define OV9640_LCC1
#define OV9640_LCC2
#define OV9640_LCC3
#define OV9640_LCC4
#define OV9640_LCC5
#define OV9640_MANU
#define OV9640_MANV
#define OV9640_HV
#define OV9640_MBD
#define OV9640_DBLV
#define OV9640_GSP
#define OV9640_GST

#define OV9640_CLKRC_DPLL_EN
#define OV9640_CLKRC_DIRECT
#define OV9640_CLKRC_DIV(x)

#define OV9640_PSHFT_VAL(x)

#define OV9640_ACOM_2X_ANALOG
#define OV9640_ACOM_RSVD

#define OV9640_MVFP_V
#define OV9640_MVFP_H

#define OV9640_COM1_HREF_NOSKIP
#define OV9640_COM1_HREF_2SKIP
#define OV9640_COM1_HREF_3SKIP
#define OV9640_COM1_QQFMT

#define OV9640_COM2_SSM

#define OV9640_COM3_VP

#define OV9640_COM4_QQ_VP
#define OV9640_COM4_RSVD

#define OV9640_COM5_SYSCLK
#define OV9640_COM5_LONGEXP

#define OV9640_COM6_OPT_BLC
#define OV9640_COM6_ADBLC_BIAS
#define OV9640_COM6_FMT_RST
#define OV9640_COM6_ADBLC_OPTEN

#define OV9640_COM7_RAW_RGB
#define OV9640_COM7_RGB
#define OV9640_COM7_QCIF
#define OV9640_COM7_QVGA
#define OV9640_COM7_CIF
#define OV9640_COM7_VGA
#define OV9640_COM7_SCCB_RESET

#define OV9640_TSLB_YVYU_YUYV
#define OV9640_TSLB_YUYV_UYVY

#define OV9640_COM12_YUV_AVG
#define OV9640_COM12_RSVD

#define OV9640_COM13_GAMMA_NONE
#define OV9640_COM13_GAMMA_Y
#define OV9640_COM13_GAMMA_RAW
#define OV9640_COM13_RGB_AVG
#define OV9640_COM13_MATRIX_EN
#define OV9640_COM13_Y_DELAY_EN
#define OV9640_COM13_YUV_DLY(x)

#define OV9640_COM15_OR_00FF
#define OV9640_COM15_OR_01FE
#define OV9640_COM15_OR_10F0
#define OV9640_COM15_RGB_NORM
#define OV9640_COM15_RGB_565
#define OV9640_COM15_RGB_555

#define OV9640_COM16_RB_AVG

/* IDs */
#define OV9640_V2
#define OV9640_V3
#define VERSION(pid, ver)

/* supported resolutions */
enum {};
#define H_SXGA

/* Misc. structures */
struct ov9640_reg_alt {};

struct ov9640_reg {};

struct ov9640_priv {};

#endif	/* __DRIVERS_MEDIA_VIDEO_OV9640_H__ */