Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ov772x.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/v4l2-mediabus.h>
#include <linux/videodev2.h>
#include <media/ov772x.h>
#include <media/soc_camera.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-subdev.h>

Go to the source code of this file.

Data Structures

struct  ov772x_color_format
 
struct  ov772x_win_size
 
struct  ov772x_priv
 

Macros

#define GAIN   0x00 /* AGC - Gain control gain setting */
 
#define BLUE   0x01 /* AWB - Blue channel gain setting */
 
#define RED   0x02 /* AWB - Red channel gain setting */
 
#define GREEN   0x03 /* AWB - Green channel gain setting */
 
#define COM1   0x04 /* Common control 1 */
 
#define BAVG   0x05 /* U/B Average Level */
 
#define GAVG   0x06 /* Y/Gb Average Level */
 
#define RAVG   0x07 /* V/R Average Level */
 
#define AECH   0x08 /* Exposure Value - AEC MSBs */
 
#define COM2   0x09 /* Common control 2 */
 
#define PID   0x0A /* Product ID Number MSB */
 
#define VER   0x0B /* Product ID Number LSB */
 
#define COM3   0x0C /* Common control 3 */
 
#define COM4   0x0D /* Common control 4 */
 
#define COM5   0x0E /* Common control 5 */
 
#define COM6   0x0F /* Common control 6 */
 
#define AEC   0x10 /* Exposure Value */
 
#define CLKRC   0x11 /* Internal clock */
 
#define COM7   0x12 /* Common control 7 */
 
#define COM8   0x13 /* Common control 8 */
 
#define COM9   0x14 /* Common control 9 */
 
#define COM10   0x15 /* Common control 10 */
 
#define REG16   0x16 /* Register 16 */
 
#define HSTART   0x17 /* Horizontal sensor size */
 
#define HSIZE   0x18 /* Horizontal frame (HREF column) end high 8-bit */
 
#define VSTART   0x19 /* Vertical frame (row) start high 8-bit */
 
#define VSIZE   0x1A /* Vertical sensor size */
 
#define PSHFT   0x1B /* Data format - pixel delay select */
 
#define MIDH   0x1C /* Manufacturer ID byte - high */
 
#define MIDL   0x1D /* Manufacturer ID byte - low */
 
#define LAEC   0x1F /* Fine AEC value */
 
#define COM11   0x20 /* Common control 11 */
 
#define BDBASE   0x22 /* Banding filter Minimum AEC value */
 
#define DBSTEP   0x23 /* Banding filter Maximum Setp */
 
#define AEW   0x24 /* AGC/AEC - Stable operating region (upper limit) */
 
#define AEB   0x25 /* AGC/AEC - Stable operating region (lower limit) */
 
#define VPT   0x26 /* AGC/AEC Fast mode operating region */
 
#define REG28   0x28 /* Register 28 */
 
#define HOUTSIZE   0x29 /* Horizontal data output size MSBs */
 
#define EXHCH   0x2A /* Dummy pixel insert MSB */
 
#define EXHCL   0x2B /* Dummy pixel insert LSB */
 
#define VOUTSIZE   0x2C /* Vertical data output size MSBs */
 
#define ADVFL   0x2D /* LSB of insert dummy lines in Vertical direction */
 
#define ADVFH   0x2E /* MSG of insert dummy lines in Vertical direction */
 
#define YAVE   0x2F /* Y/G Channel Average value */
 
#define LUMHTH   0x30 /* Histogram AEC/AGC Luminance high level threshold */
 
#define LUMLTH   0x31 /* Histogram AEC/AGC Luminance low level threshold */
 
#define HREF   0x32 /* Image start and size control */
 
#define DM_LNL   0x33 /* Dummy line low 8 bits */
 
#define DM_LNH   0x34 /* Dummy line high 8 bits */
 
#define ADOFF_B   0x35 /* AD offset compensation value for B channel */
 
#define ADOFF_R   0x36 /* AD offset compensation value for R channel */
 
#define ADOFF_GB   0x37 /* AD offset compensation value for Gb channel */
 
#define ADOFF_GR   0x38 /* AD offset compensation value for Gr channel */
 
#define OFF_B   0x39 /* Analog process B channel offset value */
 
#define OFF_R   0x3A /* Analog process R channel offset value */
 
#define OFF_GB   0x3B /* Analog process Gb channel offset value */
 
#define OFF_GR   0x3C /* Analog process Gr channel offset value */
 
#define COM12   0x3D /* Common control 12 */
 
#define COM13   0x3E /* Common control 13 */
 
#define COM14   0x3F /* Common control 14 */
 
#define COM15   0x40 /* Common control 15*/
 
#define COM16   0x41 /* Common control 16 */
 
#define TGT_B   0x42 /* BLC blue channel target value */
 
#define TGT_R   0x43 /* BLC red channel target value */
 
#define TGT_GB   0x44 /* BLC Gb channel target value */
 
#define TGT_GR   0x45 /* BLC Gr channel target value */
 
#define LCC0   0x46 /* Lens correction control 0 */
 
#define LCC1   0x47 /* Lens correction option 1 - X coordinate */
 
#define LCC2   0x48 /* Lens correction option 2 - Y coordinate */
 
#define LCC3   0x49 /* Lens correction option 3 */
 
#define LCC4   0x4A /* Lens correction option 4 - radius of the circular */
 
#define LCC5   0x4B /* Lens correction option 5 */
 
#define LCC6   0x4C /* Lens correction option 6 */
 
#define LC_CTR   0x46 /* Lens correction control */
 
#define LC_XC   0x47 /* X coordinate of lens correction center relative */
 
#define LC_YC   0x48 /* Y coordinate of lens correction center relative */
 
#define LC_COEF   0x49 /* Lens correction coefficient */
 
#define LC_RADI   0x4A /* Lens correction radius */
 
#define LC_COEFB   0x4B /* Lens B channel compensation coefficient */
 
#define LC_COEFR   0x4C /* Lens R channel compensation coefficient */
 
#define FIXGAIN   0x4D /* Analog fix gain amplifer */
 
#define AREF0   0x4E /* Sensor reference control */
 
#define AREF1   0x4F /* Sensor reference current control */
 
#define AREF2   0x50 /* Analog reference control */
 
#define AREF3   0x51 /* ADC reference control */
 
#define AREF4   0x52 /* ADC reference control */
 
#define AREF5   0x53 /* ADC reference control */
 
#define AREF6   0x54 /* Analog reference control */
 
#define AREF7   0x55 /* Analog reference control */
 
#define UFIX   0x60 /* U channel fixed value output */
 
#define VFIX   0x61 /* V channel fixed value output */
 
#define AWBB_BLK   0x62 /* AWB option for advanced AWB */
 
#define AWB_CTRL0   0x63 /* AWB control byte 0 */
 
#define DSP_CTRL1   0x64 /* DSP control byte 1 */
 
#define DSP_CTRL2   0x65 /* DSP control byte 2 */
 
#define DSP_CTRL3   0x66 /* DSP control byte 3 */
 
#define DSP_CTRL4   0x67 /* DSP control byte 4 */
 
#define AWB_BIAS   0x68 /* AWB BLC level clip */
 
#define AWB_CTRL1   0x69 /* AWB control 1 */
 
#define AWB_CTRL2   0x6A /* AWB control 2 */
 
#define AWB_CTRL3   0x6B /* AWB control 3 */
 
#define AWB_CTRL4   0x6C /* AWB control 4 */
 
#define AWB_CTRL5   0x6D /* AWB control 5 */
 
#define AWB_CTRL6   0x6E /* AWB control 6 */
 
#define AWB_CTRL7   0x6F /* AWB control 7 */
 
#define AWB_CTRL8   0x70 /* AWB control 8 */
 
#define AWB_CTRL9   0x71 /* AWB control 9 */
 
#define AWB_CTRL10   0x72 /* AWB control 10 */
 
#define AWB_CTRL11   0x73 /* AWB control 11 */
 
#define AWB_CTRL12   0x74 /* AWB control 12 */
 
#define AWB_CTRL13   0x75 /* AWB control 13 */
 
#define AWB_CTRL14   0x76 /* AWB control 14 */
 
#define AWB_CTRL15   0x77 /* AWB control 15 */
 
#define AWB_CTRL16   0x78 /* AWB control 16 */
 
#define AWB_CTRL17   0x79 /* AWB control 17 */
 
#define AWB_CTRL18   0x7A /* AWB control 18 */
 
#define AWB_CTRL19   0x7B /* AWB control 19 */
 
#define AWB_CTRL20   0x7C /* AWB control 20 */
 
#define AWB_CTRL21   0x7D /* AWB control 21 */
 
#define GAM1   0x7E /* Gamma Curve 1st segment input end point */
 
#define GAM2   0x7F /* Gamma Curve 2nd segment input end point */
 
#define GAM3   0x80 /* Gamma Curve 3rd segment input end point */
 
#define GAM4   0x81 /* Gamma Curve 4th segment input end point */
 
#define GAM5   0x82 /* Gamma Curve 5th segment input end point */
 
#define GAM6   0x83 /* Gamma Curve 6th segment input end point */
 
#define GAM7   0x84 /* Gamma Curve 7th segment input end point */
 
#define GAM8   0x85 /* Gamma Curve 8th segment input end point */
 
#define GAM9   0x86 /* Gamma Curve 9th segment input end point */
 
#define GAM10   0x87 /* Gamma Curve 10th segment input end point */
 
#define GAM11   0x88 /* Gamma Curve 11th segment input end point */
 
#define GAM12   0x89 /* Gamma Curve 12th segment input end point */
 
#define GAM13   0x8A /* Gamma Curve 13th segment input end point */
 
#define GAM14   0x8B /* Gamma Curve 14th segment input end point */
 
#define GAM15   0x8C /* Gamma Curve 15th segment input end point */
 
#define SLOP   0x8D /* Gamma curve highest segment slope */
 
#define DNSTH   0x8E /* De-noise threshold */
 
#define EDGE_STRNGT   0x8F /* Edge strength control when manual mode */
 
#define EDGE_TRSHLD   0x90 /* Edge threshold control when manual mode */
 
#define DNSOFF   0x91 /* Auto De-noise threshold control */
 
#define EDGE_UPPER   0x92 /* Edge strength upper limit when Auto mode */
 
#define EDGE_LOWER   0x93 /* Edge strength lower limit when Auto mode */
 
#define MTX1   0x94 /* Matrix coefficient 1 */
 
#define MTX2   0x95 /* Matrix coefficient 2 */
 
#define MTX3   0x96 /* Matrix coefficient 3 */
 
#define MTX4   0x97 /* Matrix coefficient 4 */
 
#define MTX5   0x98 /* Matrix coefficient 5 */
 
#define MTX6   0x99 /* Matrix coefficient 6 */
 
#define MTX_CTRL   0x9A /* Matrix control */
 
#define BRIGHT   0x9B /* Brightness control */
 
#define CNTRST   0x9C /* Contrast contrast */
 
#define CNTRST_CTRL   0x9D /* Contrast contrast center */
 
#define UVAD_J0   0x9E /* Auto UV adjust contrast 0 */
 
#define UVAD_J1   0x9F /* Auto UV adjust contrast 1 */
 
#define SCAL0   0xA0 /* Scaling control 0 */
 
#define SCAL1   0xA1 /* Scaling control 1 */
 
#define SCAL2   0xA2 /* Scaling control 2 */
 
#define FIFODLYM   0xA3 /* FIFO manual mode delay control */
 
#define FIFODLYA   0xA4 /* FIFO auto mode delay control */
 
#define SDE   0xA6 /* Special digital effect control */
 
#define USAT   0xA7 /* U component saturation control */
 
#define VSAT   0xA8 /* V component saturation control */
 
#define HUE0   0xA9 /* Hue control 0 */
 
#define HUE1   0xAA /* Hue control 1 */
 
#define HUECOS   0xA9 /* Cosine value */
 
#define HUESIN   0xAA /* Sine value */
 
#define SIGN   0xAB /* Sign bit for Hue and contrast */
 
#define DSPAUTO   0xAC /* DSP auto function ON/OFF control */
 
#define SOFT_SLEEP_MODE   0x10 /* Soft sleep mode */
 
#define OCAP_1x   0x00 /* 1x */
 
#define OCAP_2x   0x01 /* 2x */
 
#define OCAP_3x   0x02 /* 3x */
 
#define OCAP_4x   0x03 /* 4x */
 
#define SWAP_MASK   (SWAP_RGB | SWAP_YUV | SWAP_ML)
 
#define IMG_MASK   (VFLIP_IMG | HFLIP_IMG)
 
#define VFLIP_IMG   0x80 /* Vertical flip image ON/OFF selection */
 
#define HFLIP_IMG   0x40 /* Horizontal mirror image ON/OFF selection */
 
#define SWAP_RGB   0x20 /* Swap B/R output sequence in RGB mode */
 
#define SWAP_YUV   0x10 /* Swap Y/UV output sequence in YUV mode */
 
#define SWAP_ML   0x08 /* Swap output MSB/LSB */
 
#define NOTRI_CLOCK   0x04 /* 0: Tri-state at this period */
 
#define NOTRI_DATA   0x02 /* 0: Tri-state at this period */
 
#define SCOLOR_TEST   0x01 /* Sensor color bar test pattern */
 
#define PLL_BYPASS   0x00 /* 00: Bypass PLL */
 
#define PLL_4x   0x40 /* 01: PLL 4x */
 
#define PLL_6x   0x80 /* 10: PLL 6x */
 
#define PLL_8x   0xc0 /* 11: PLL 8x */
 
#define AEC_FULL   0x00 /* 00: Full window */
 
#define AEC_1p2   0x10 /* 01: 1/2 window */
 
#define AEC_1p4   0x20 /* 10: 1/4 window */
 
#define AEC_2p3   0x30 /* 11: Low 2/3 window */
 
#define AFR_ON_OFF   0x80 /* Auto frame rate control ON/OFF selection */
 
#define AFR_SPPED   0x40 /* Auto frame rate control speed selection */
 
#define AFR_NO_RATE   0x00 /* No reduction of frame rate */
 
#define AFR_1p2   0x10 /* Max reduction to 1/2 frame rate */
 
#define AFR_1p4   0x20 /* Max reduction to 1/4 frame rate */
 
#define AFR_1p8   0x30 /* Max reduction to 1/8 frame rate */
 
#define AF_2x   0x00 /* Add frame when AGC reaches 2x gain */
 
#define AF_4x   0x04 /* Add frame when AGC reaches 4x gain */
 
#define AF_8x   0x08 /* Add frame when AGC reaches 8x gain */
 
#define AF_16x   0x0c /* Add frame when AGC reaches 16x gain */
 
#define AEC_NO_LIMIT   0x01 /* 0 : AEC incease step has limit */
 
#define SCCB_RESET   0x80 /* 0 : No change */
 
#define SLCT_MASK   0x40 /* Mask of VGA or QVGA */
 
#define SLCT_VGA   0x00 /* 0 : VGA */
 
#define SLCT_QVGA   0x40 /* 1 : QVGA */
 
#define ITU656_ON_OFF   0x20 /* ITU656 protocol ON/OFF selection */
 
#define SENSOR_RAW   0x10 /* Sensor RAW */
 
#define FMT_MASK   0x0c /* Mask of color format */
 
#define FMT_GBR422   0x00 /* 00 : GBR 4:2:2 */
 
#define FMT_RGB565   0x04 /* 01 : RGB 565 */
 
#define FMT_RGB555   0x08 /* 10 : RGB 555 */
 
#define FMT_RGB444   0x0c /* 11 : RGB 444 */
 
#define OFMT_MASK   0x03 /* Mask of output format */
 
#define OFMT_YUV   0x00 /* 00 : YUV */
 
#define OFMT_P_BRAW   0x01 /* 01 : Processed Bayer RAW */
 
#define OFMT_RGB   0x02 /* 10 : RGB */
 
#define OFMT_BRAW   0x03 /* 11 : Bayer RAW */
 
#define FAST_ALGO   0x80 /* Enable fast AGC/AEC algorithm */
 
#define UNLMT_STEP   0x40 /* 0 : Step size is limited */
 
#define BNDF_ON_OFF   0x20 /* Banding filter ON/OFF */
 
#define AEC_BND   0x10 /* Enable AEC below banding value */
 
#define AEC_ON_OFF   0x08 /* Fine AEC ON/OFF control */
 
#define AGC_ON   0x04 /* AGC Enable */
 
#define AWB_ON   0x02 /* AWB Enable */
 
#define AEC_ON   0x01 /* AEC Enable */
 
#define BASE_AECAGC   0x80 /* Histogram or average based AEC/AGC */
 
#define GAIN_2x   0x00 /* 000 : 2x */
 
#define GAIN_4x   0x10 /* 001 : 4x */
 
#define GAIN_8x   0x20 /* 010 : 8x */
 
#define GAIN_16x   0x30 /* 011 : 16x */
 
#define GAIN_32x   0x40 /* 100 : 32x */
 
#define GAIN_64x   0x50 /* 101 : 64x */
 
#define GAIN_128x   0x60 /* 110 : 128x */
 
#define DROP_VSYNC   0x04 /* Drop VSYNC output of corrupt frame */
 
#define DROP_HREF   0x02 /* Drop HREF output of corrupt frame */
 
#define SGLF_ON_OFF   0x02 /* Single frame ON/OFF selection */
 
#define SGLF_TRIG   0x01 /* Single frame transfer trigger */
 
#define HREF_VSTART_SHIFT   6 /* VSTART LSB */
 
#define HREF_HSTART_SHIFT   4 /* HSTART 2 LSBs */
 
#define HREF_VSIZE_SHIFT   2 /* VSIZE LSB */
 
#define HREF_HSIZE_SHIFT   0 /* HSIZE 2 LSBs */
 
#define EXHCH_VSIZE_SHIFT   2 /* VOUTSIZE LSB */
 
#define EXHCH_HSIZE_SHIFT   0 /* HOUTSIZE 2 LSBs */
 
#define FIFO_ON   0x80 /* FIFO enable/disable selection */
 
#define UV_ON_OFF   0x40 /* UV adjust function ON/OFF selection */
 
#define YUV444_2_422   0x20 /* YUV444 to 422 UV channel option selection */
 
#define CLR_MTRX_ON_OFF   0x10 /* Color matrix ON/OFF selection */
 
#define INTPLT_ON_OFF   0x08 /* Interpolation ON/OFF selection */
 
#define GMM_ON_OFF   0x04 /* Gamma function ON/OFF selection */
 
#define AUTO_BLK_ON_OFF   0x02 /* Black defect auto correction ON/OFF */
 
#define AUTO_WHT_ON_OFF   0x01 /* White define auto correction ON/OFF */
 
#define UV_MASK   0x80 /* UV output sequence option */
 
#define UV_ON   0x80 /* ON */
 
#define UV_OFF   0x00 /* OFF */
 
#define CBAR_MASK   0x20 /* DSP Color bar mask */
 
#define CBAR_ON   0x20 /* ON */
 
#define CBAR_OFF   0x00 /* OFF */
 
#define DSP_OFMT_YUV   0x00
 
#define DSP_OFMT_RGB   0x00
 
#define DSP_OFMT_RAW8   0x02
 
#define DSP_OFMT_RAW10   0x03
 
#define AWB_ACTRL   0x80 /* AWB auto threshold control */
 
#define DENOISE_ACTRL   0x40 /* De-noise auto threshold control */
 
#define EDGE_ACTRL   0x20 /* Edge enhancement auto strength control */
 
#define UV_ACTRL   0x10 /* UV adjust auto slope control */
 
#define SCAL0_ACTRL   0x08 /* Auto scaling factor control */
 
#define SCAL1_2_ACTRL   0x04 /* Auto scaling factor control */
 
#define VGA_WIDTH   640
 
#define VGA_HEIGHT   480
 
#define QVGA_WIDTH   320
 
#define QVGA_HEIGHT   240
 
#define OV772X_MAX_WIDTH   VGA_WIDTH
 
#define OV772X_MAX_HEIGHT   VGA_HEIGHT
 
#define OV7720   0x7720
 
#define OV7725   0x7721
 
#define VERSION(pid, ver)   ((pid<<8)|(ver&0xFF))
 

Functions

 MODULE_DEVICE_TABLE (i2c, ov772x_id)
 
 module_i2c_driver (ov772x_i2c_driver)
 
 MODULE_DESCRIPTION ("SoC Camera driver for ov772x")
 
 MODULE_AUTHOR ("Kuninori Morimoto")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define ADOFF_B   0x35 /* AD offset compensation value for B channel */

Definition at line 86 of file ov772x.c.

#define ADOFF_GB   0x37 /* AD offset compensation value for Gb channel */

Definition at line 88 of file ov772x.c.

#define ADOFF_GR   0x38 /* AD offset compensation value for Gr channel */

Definition at line 89 of file ov772x.c.

#define ADOFF_R   0x36 /* AD offset compensation value for R channel */

Definition at line 87 of file ov772x.c.

#define ADVFH   0x2E /* MSG of insert dummy lines in Vertical direction */

Definition at line 79 of file ov772x.c.

#define ADVFL   0x2D /* LSB of insert dummy lines in Vertical direction */

Definition at line 78 of file ov772x.c.

#define AEB   0x25 /* AGC/AEC - Stable operating region (lower limit) */

Definition at line 71 of file ov772x.c.

#define AEC   0x10 /* Exposure Value */

Definition at line 52 of file ov772x.c.

#define AEC_1p2   0x10 /* 01: 1/2 window */

Definition at line 248 of file ov772x.c.

#define AEC_1p4   0x20 /* 10: 1/4 window */

Definition at line 249 of file ov772x.c.

#define AEC_2p3   0x30 /* 11: Low 2/3 window */

Definition at line 250 of file ov772x.c.

#define AEC_BND   0x10 /* Enable AEC below banding value */

Definition at line 298 of file ov772x.c.

#define AEC_FULL   0x00 /* 00: Full window */

Definition at line 247 of file ov772x.c.

#define AEC_NO_LIMIT   0x01 /* 0 : AEC incease step has limit */

Definition at line 266 of file ov772x.c.

#define AEC_ON   0x01 /* AEC Enable */

Definition at line 302 of file ov772x.c.

#define AEC_ON_OFF   0x08 /* Fine AEC ON/OFF control */

Definition at line 299 of file ov772x.c.

#define AECH   0x08 /* Exposure Value - AEC MSBs */

Definition at line 44 of file ov772x.c.

#define AEW   0x24 /* AGC/AEC - Stable operating region (upper limit) */

Definition at line 70 of file ov772x.c.

#define AF_16x   0x0c /* Add frame when AGC reaches 16x gain */

Definition at line 264 of file ov772x.c.

#define AF_2x   0x00 /* Add frame when AGC reaches 2x gain */

Definition at line 261 of file ov772x.c.

#define AF_4x   0x04 /* Add frame when AGC reaches 4x gain */

Definition at line 262 of file ov772x.c.

#define AF_8x   0x08 /* Add frame when AGC reaches 8x gain */

Definition at line 263 of file ov772x.c.

#define AFR_1p2   0x10 /* Max reduction to 1/2 frame rate */

Definition at line 257 of file ov772x.c.

#define AFR_1p4   0x20 /* Max reduction to 1/4 frame rate */

Definition at line 258 of file ov772x.c.

#define AFR_1p8   0x30 /* Max reduction to 1/8 frame rate */

Definition at line 259 of file ov772x.c.

#define AFR_NO_RATE   0x00 /* No reduction of frame rate */

Definition at line 256 of file ov772x.c.

#define AFR_ON_OFF   0x80 /* Auto frame rate control ON/OFF selection */

Definition at line 253 of file ov772x.c.

#define AFR_SPPED   0x40 /* Auto frame rate control speed selection */

Definition at line 254 of file ov772x.c.

#define AGC_ON   0x04 /* AGC Enable */

Definition at line 300 of file ov772x.c.

#define AREF0   0x4E /* Sensor reference control */

Definition at line 121 of file ov772x.c.

#define AREF1   0x4F /* Sensor reference current control */

Definition at line 122 of file ov772x.c.

#define AREF2   0x50 /* Analog reference control */

Definition at line 123 of file ov772x.c.

#define AREF3   0x51 /* ADC reference control */

Definition at line 124 of file ov772x.c.

#define AREF4   0x52 /* ADC reference control */

Definition at line 125 of file ov772x.c.

#define AREF5   0x53 /* ADC reference control */

Definition at line 126 of file ov772x.c.

#define AREF6   0x54 /* Analog reference control */

Definition at line 127 of file ov772x.c.

#define AREF7   0x55 /* Analog reference control */

Definition at line 128 of file ov772x.c.

#define AUTO_BLK_ON_OFF   0x02 /* Black defect auto correction ON/OFF */

Definition at line 338 of file ov772x.c.

#define AUTO_WHT_ON_OFF   0x01 /* White define auto correction ON/OFF */

Definition at line 339 of file ov772x.c.

#define AWB_ACTRL   0x80 /* AWB auto threshold control */

Definition at line 356 of file ov772x.c.

#define AWB_BIAS   0x68 /* AWB BLC level clip */

Definition at line 137 of file ov772x.c.

#define AWB_CTRL0   0x63 /* AWB control byte 0 */

Definition at line 132 of file ov772x.c.

#define AWB_CTRL1   0x69 /* AWB control 1 */

Definition at line 138 of file ov772x.c.

#define AWB_CTRL10   0x72 /* AWB control 10 */

Definition at line 147 of file ov772x.c.

#define AWB_CTRL11   0x73 /* AWB control 11 */

Definition at line 148 of file ov772x.c.

#define AWB_CTRL12   0x74 /* AWB control 12 */

Definition at line 149 of file ov772x.c.

#define AWB_CTRL13   0x75 /* AWB control 13 */

Definition at line 150 of file ov772x.c.

#define AWB_CTRL14   0x76 /* AWB control 14 */

Definition at line 151 of file ov772x.c.

#define AWB_CTRL15   0x77 /* AWB control 15 */

Definition at line 152 of file ov772x.c.

#define AWB_CTRL16   0x78 /* AWB control 16 */

Definition at line 153 of file ov772x.c.

#define AWB_CTRL17   0x79 /* AWB control 17 */

Definition at line 154 of file ov772x.c.

#define AWB_CTRL18   0x7A /* AWB control 18 */

Definition at line 155 of file ov772x.c.

#define AWB_CTRL19   0x7B /* AWB control 19 */

Definition at line 156 of file ov772x.c.

#define AWB_CTRL2   0x6A /* AWB control 2 */

Definition at line 139 of file ov772x.c.

#define AWB_CTRL20   0x7C /* AWB control 20 */

Definition at line 157 of file ov772x.c.

#define AWB_CTRL21   0x7D /* AWB control 21 */

Definition at line 158 of file ov772x.c.

#define AWB_CTRL3   0x6B /* AWB control 3 */

Definition at line 140 of file ov772x.c.

#define AWB_CTRL4   0x6C /* AWB control 4 */

Definition at line 141 of file ov772x.c.

#define AWB_CTRL5   0x6D /* AWB control 5 */

Definition at line 142 of file ov772x.c.

#define AWB_CTRL6   0x6E /* AWB control 6 */

Definition at line 143 of file ov772x.c.

#define AWB_CTRL7   0x6F /* AWB control 7 */

Definition at line 144 of file ov772x.c.

#define AWB_CTRL8   0x70 /* AWB control 8 */

Definition at line 145 of file ov772x.c.

#define AWB_CTRL9   0x71 /* AWB control 9 */

Definition at line 146 of file ov772x.c.

#define AWB_ON   0x02 /* AWB Enable */

Definition at line 301 of file ov772x.c.

#define AWBB_BLK   0x62 /* AWB option for advanced AWB */

Definition at line 131 of file ov772x.c.

#define BASE_AECAGC   0x80 /* Histogram or average based AEC/AGC */

Definition at line 305 of file ov772x.c.

#define BAVG   0x05 /* U/B Average Level */

Definition at line 41 of file ov772x.c.

#define BDBASE   0x22 /* Banding filter Minimum AEC value */

Definition at line 68 of file ov772x.c.

#define BLUE   0x01 /* AWB - Blue channel gain setting */

Definition at line 37 of file ov772x.c.

#define BNDF_ON_OFF   0x20 /* Banding filter ON/OFF */

Definition at line 297 of file ov772x.c.

#define BRIGHT   0x9B /* Brightness control */

Definition at line 188 of file ov772x.c.

#define CBAR_MASK   0x20 /* DSP Color bar mask */

Definition at line 345 of file ov772x.c.

#define CBAR_OFF   0x00 /* OFF */

Definition at line 347 of file ov772x.c.

#define CBAR_ON   0x20 /* ON */

Definition at line 346 of file ov772x.c.

#define CLKRC   0x11 /* Internal clock */

Definition at line 53 of file ov772x.c.

#define CLR_MTRX_ON_OFF   0x10 /* Color matrix ON/OFF selection */

Definition at line 335 of file ov772x.c.

#define CNTRST   0x9C /* Contrast contrast */

Definition at line 189 of file ov772x.c.

#define CNTRST_CTRL   0x9D /* Contrast contrast center */

Definition at line 190 of file ov772x.c.

#define COM1   0x04 /* Common control 1 */

Definition at line 40 of file ov772x.c.

#define COM10   0x15 /* Common control 10 */

Definition at line 57 of file ov772x.c.

#define COM11   0x20 /* Common control 11 */

Definition at line 67 of file ov772x.c.

#define COM12   0x3D /* Common control 12 */

Definition at line 94 of file ov772x.c.

#define COM13   0x3E /* Common control 13 */

Definition at line 95 of file ov772x.c.

#define COM14   0x3F /* Common control 14 */

Definition at line 96 of file ov772x.c.

#define COM15   0x40 /* Common control 15*/

Definition at line 97 of file ov772x.c.

#define COM16   0x41 /* Common control 16 */

Definition at line 98 of file ov772x.c.

#define COM2   0x09 /* Common control 2 */

Definition at line 45 of file ov772x.c.

#define COM3   0x0C /* Common control 3 */

Definition at line 48 of file ov772x.c.

#define COM4   0x0D /* Common control 4 */

Definition at line 49 of file ov772x.c.

#define COM5   0x0E /* Common control 5 */

Definition at line 50 of file ov772x.c.

#define COM6   0x0F /* Common control 6 */

Definition at line 51 of file ov772x.c.

#define COM7   0x12 /* Common control 7 */

Definition at line 54 of file ov772x.c.

#define COM8   0x13 /* Common control 8 */

Definition at line 55 of file ov772x.c.

#define COM9   0x14 /* Common control 9 */

Definition at line 56 of file ov772x.c.

#define DBSTEP   0x23 /* Banding filter Maximum Setp */

Definition at line 69 of file ov772x.c.

#define DENOISE_ACTRL   0x40 /* De-noise auto threshold control */

Definition at line 357 of file ov772x.c.

#define DM_LNH   0x34 /* Dummy line high 8 bits */

Definition at line 85 of file ov772x.c.

#define DM_LNL   0x33 /* Dummy line low 8 bits */

Definition at line 84 of file ov772x.c.

#define DNSOFF   0x91 /* Auto De-noise threshold control */

Definition at line 178 of file ov772x.c.

#define DNSTH   0x8E /* De-noise threshold */

Definition at line 175 of file ov772x.c.

#define DROP_HREF   0x02 /* Drop HREF output of corrupt frame */

Definition at line 315 of file ov772x.c.

#define DROP_VSYNC   0x04 /* Drop VSYNC output of corrupt frame */

Definition at line 314 of file ov772x.c.

#define DSP_CTRL1   0x64 /* DSP control byte 1 */

Definition at line 133 of file ov772x.c.

#define DSP_CTRL2   0x65 /* DSP control byte 2 */

Definition at line 134 of file ov772x.c.

#define DSP_CTRL3   0x66 /* DSP control byte 3 */

Definition at line 135 of file ov772x.c.

#define DSP_CTRL4   0x67 /* DSP control byte 4 */

Definition at line 136 of file ov772x.c.

#define DSP_OFMT_RAW10   0x03

Definition at line 353 of file ov772x.c.

#define DSP_OFMT_RAW8   0x02

Definition at line 352 of file ov772x.c.

#define DSP_OFMT_RGB   0x00

Definition at line 351 of file ov772x.c.

#define DSP_OFMT_YUV   0x00

Definition at line 350 of file ov772x.c.

#define DSPAUTO   0xAC /* DSP auto function ON/OFF control */

Definition at line 209 of file ov772x.c.

#define EDGE_ACTRL   0x20 /* Edge enhancement auto strength control */

Definition at line 358 of file ov772x.c.

#define EDGE_LOWER   0x93 /* Edge strength lower limit when Auto mode */

Definition at line 180 of file ov772x.c.

#define EDGE_STRNGT   0x8F /* Edge strength control when manual mode */

Definition at line 176 of file ov772x.c.

#define EDGE_TRSHLD   0x90 /* Edge threshold control when manual mode */

Definition at line 177 of file ov772x.c.

#define EDGE_UPPER   0x92 /* Edge strength upper limit when Auto mode */

Definition at line 179 of file ov772x.c.

#define EXHCH   0x2A /* Dummy pixel insert MSB */

Definition at line 75 of file ov772x.c.

#define EXHCH_HSIZE_SHIFT   0 /* HOUTSIZE 2 LSBs */

Definition at line 329 of file ov772x.c.

#define EXHCH_VSIZE_SHIFT   2 /* VOUTSIZE LSB */

Definition at line 328 of file ov772x.c.

#define EXHCL   0x2B /* Dummy pixel insert LSB */

Definition at line 76 of file ov772x.c.

#define FAST_ALGO   0x80 /* Enable fast AGC/AEC algorithm */

Definition at line 293 of file ov772x.c.

#define FIFO_ON   0x80 /* FIFO enable/disable selection */

Definition at line 332 of file ov772x.c.

#define FIFODLYA   0xA4 /* FIFO auto mode delay control */

Definition at line 197 of file ov772x.c.

#define FIFODLYM   0xA3 /* FIFO manual mode delay control */

Definition at line 196 of file ov772x.c.

#define FIXGAIN   0x4D /* Analog fix gain amplifer */

Definition at line 120 of file ov772x.c.

#define FMT_GBR422   0x00 /* 00 : GBR 4:2:2 */

Definition at line 281 of file ov772x.c.

#define FMT_MASK   0x0c /* Mask of color format */

Definition at line 280 of file ov772x.c.

#define FMT_RGB444   0x0c /* 11 : RGB 444 */

Definition at line 284 of file ov772x.c.

#define FMT_RGB555   0x08 /* 10 : RGB 555 */

Definition at line 283 of file ov772x.c.

#define FMT_RGB565   0x04 /* 01 : RGB 565 */

Definition at line 282 of file ov772x.c.

#define GAIN   0x00 /* AGC - Gain control gain setting */

Definition at line 36 of file ov772x.c.

#define GAIN_128x   0x60 /* 110 : 128x */

Definition at line 313 of file ov772x.c.

#define GAIN_16x   0x30 /* 011 : 16x */

Definition at line 310 of file ov772x.c.

#define GAIN_2x   0x00 /* 000 : 2x */

Definition at line 307 of file ov772x.c.

#define GAIN_32x   0x40 /* 100 : 32x */

Definition at line 311 of file ov772x.c.

#define GAIN_4x   0x10 /* 001 : 4x */

Definition at line 308 of file ov772x.c.

#define GAIN_64x   0x50 /* 101 : 64x */

Definition at line 312 of file ov772x.c.

#define GAIN_8x   0x20 /* 010 : 8x */

Definition at line 309 of file ov772x.c.

#define GAM1   0x7E /* Gamma Curve 1st segment input end point */

Definition at line 159 of file ov772x.c.

#define GAM10   0x87 /* Gamma Curve 10th segment input end point */

Definition at line 168 of file ov772x.c.

#define GAM11   0x88 /* Gamma Curve 11th segment input end point */

Definition at line 169 of file ov772x.c.

#define GAM12   0x89 /* Gamma Curve 12th segment input end point */

Definition at line 170 of file ov772x.c.

#define GAM13   0x8A /* Gamma Curve 13th segment input end point */

Definition at line 171 of file ov772x.c.

#define GAM14   0x8B /* Gamma Curve 14th segment input end point */

Definition at line 172 of file ov772x.c.

#define GAM15   0x8C /* Gamma Curve 15th segment input end point */

Definition at line 173 of file ov772x.c.

#define GAM2   0x7F /* Gamma Curve 2nd segment input end point */

Definition at line 160 of file ov772x.c.

#define GAM3   0x80 /* Gamma Curve 3rd segment input end point */

Definition at line 161 of file ov772x.c.

#define GAM4   0x81 /* Gamma Curve 4th segment input end point */

Definition at line 162 of file ov772x.c.

#define GAM5   0x82 /* Gamma Curve 5th segment input end point */

Definition at line 163 of file ov772x.c.

#define GAM6   0x83 /* Gamma Curve 6th segment input end point */

Definition at line 164 of file ov772x.c.

#define GAM7   0x84 /* Gamma Curve 7th segment input end point */

Definition at line 165 of file ov772x.c.

#define GAM8   0x85 /* Gamma Curve 8th segment input end point */

Definition at line 166 of file ov772x.c.

#define GAM9   0x86 /* Gamma Curve 9th segment input end point */

Definition at line 167 of file ov772x.c.

#define GAVG   0x06 /* Y/Gb Average Level */

Definition at line 42 of file ov772x.c.

#define GMM_ON_OFF   0x04 /* Gamma function ON/OFF selection */

Definition at line 337 of file ov772x.c.

#define GREEN   0x03 /* AWB - Green channel gain setting */

Definition at line 39 of file ov772x.c.

#define HFLIP_IMG   0x40 /* Horizontal mirror image ON/OFF selection */

Definition at line 228 of file ov772x.c.

#define HOUTSIZE   0x29 /* Horizontal data output size MSBs */

Definition at line 74 of file ov772x.c.

#define HREF   0x32 /* Image start and size control */

Definition at line 83 of file ov772x.c.

#define HREF_HSIZE_SHIFT   0 /* HSIZE 2 LSBs */

Definition at line 325 of file ov772x.c.

#define HREF_HSTART_SHIFT   4 /* HSTART 2 LSBs */

Definition at line 323 of file ov772x.c.

#define HREF_VSIZE_SHIFT   2 /* VSIZE LSB */

Definition at line 324 of file ov772x.c.

#define HREF_VSTART_SHIFT   6 /* VSTART LSB */

Definition at line 322 of file ov772x.c.

#define HSIZE   0x18 /* Horizontal frame (HREF column) end high 8-bit */

Definition at line 60 of file ov772x.c.

#define HSTART   0x17 /* Horizontal sensor size */

Definition at line 59 of file ov772x.c.

#define HUE0   0xA9 /* Hue control 0 */

Definition at line 202 of file ov772x.c.

#define HUE1   0xAA /* Hue control 1 */

Definition at line 203 of file ov772x.c.

#define HUECOS   0xA9 /* Cosine value */

Definition at line 205 of file ov772x.c.

#define HUESIN   0xAA /* Sine value */

Definition at line 206 of file ov772x.c.

#define IMG_MASK   (VFLIP_IMG | HFLIP_IMG)

Definition at line 225 of file ov772x.c.

#define INTPLT_ON_OFF   0x08 /* Interpolation ON/OFF selection */

Definition at line 336 of file ov772x.c.

#define ITU656_ON_OFF   0x20 /* ITU656 protocol ON/OFF selection */

Definition at line 277 of file ov772x.c.

#define LAEC   0x1F /* Fine AEC value */

Definition at line 66 of file ov772x.c.

#define LC_COEF   0x49 /* Lens correction coefficient */

Definition at line 115 of file ov772x.c.

#define LC_COEFB   0x4B /* Lens B channel compensation coefficient */

Definition at line 117 of file ov772x.c.

#define LC_COEFR   0x4C /* Lens R channel compensation coefficient */

Definition at line 118 of file ov772x.c.

#define LC_CTR   0x46 /* Lens correction control */

Definition at line 112 of file ov772x.c.

#define LC_RADI   0x4A /* Lens correction radius */

Definition at line 116 of file ov772x.c.

#define LC_XC   0x47 /* X coordinate of lens correction center relative */

Definition at line 113 of file ov772x.c.

#define LC_YC   0x48 /* Y coordinate of lens correction center relative */

Definition at line 114 of file ov772x.c.

#define LCC0   0x46 /* Lens correction control 0 */

Definition at line 104 of file ov772x.c.

#define LCC1   0x47 /* Lens correction option 1 - X coordinate */

Definition at line 105 of file ov772x.c.

#define LCC2   0x48 /* Lens correction option 2 - Y coordinate */

Definition at line 106 of file ov772x.c.

#define LCC3   0x49 /* Lens correction option 3 */

Definition at line 107 of file ov772x.c.

#define LCC4   0x4A /* Lens correction option 4 - radius of the circular */

Definition at line 108 of file ov772x.c.

#define LCC5   0x4B /* Lens correction option 5 */

Definition at line 109 of file ov772x.c.

#define LCC6   0x4C /* Lens correction option 6 */

Definition at line 110 of file ov772x.c.

#define LUMHTH   0x30 /* Histogram AEC/AGC Luminance high level threshold */

Definition at line 81 of file ov772x.c.

#define LUMLTH   0x31 /* Histogram AEC/AGC Luminance low level threshold */

Definition at line 82 of file ov772x.c.

#define MIDH   0x1C /* Manufacturer ID byte - high */

Definition at line 64 of file ov772x.c.

#define MIDL   0x1D /* Manufacturer ID byte - low */

Definition at line 65 of file ov772x.c.

#define MTX1   0x94 /* Matrix coefficient 1 */

Definition at line 181 of file ov772x.c.

#define MTX2   0x95 /* Matrix coefficient 2 */

Definition at line 182 of file ov772x.c.

#define MTX3   0x96 /* Matrix coefficient 3 */

Definition at line 183 of file ov772x.c.

#define MTX4   0x97 /* Matrix coefficient 4 */

Definition at line 184 of file ov772x.c.

#define MTX5   0x98 /* Matrix coefficient 5 */

Definition at line 185 of file ov772x.c.

#define MTX6   0x99 /* Matrix coefficient 6 */

Definition at line 186 of file ov772x.c.

#define MTX_CTRL   0x9A /* Matrix control */

Definition at line 187 of file ov772x.c.

#define NOTRI_CLOCK   0x04 /* 0: Tri-state at this period */

Definition at line 233 of file ov772x.c.

#define NOTRI_DATA   0x02 /* 0: Tri-state at this period */

Definition at line 236 of file ov772x.c.

#define OCAP_1x   0x00 /* 1x */

Definition at line 218 of file ov772x.c.

#define OCAP_2x   0x01 /* 2x */

Definition at line 219 of file ov772x.c.

#define OCAP_3x   0x02 /* 3x */

Definition at line 220 of file ov772x.c.

#define OCAP_4x   0x03 /* 4x */

Definition at line 221 of file ov772x.c.

#define OFF_B   0x39 /* Analog process B channel offset value */

Definition at line 90 of file ov772x.c.

#define OFF_GB   0x3B /* Analog process Gb channel offset value */

Definition at line 92 of file ov772x.c.

#define OFF_GR   0x3C /* Analog process Gr channel offset value */

Definition at line 93 of file ov772x.c.

#define OFF_R   0x3A /* Analog process R channel offset value */

Definition at line 91 of file ov772x.c.

#define OFMT_BRAW   0x03 /* 11 : Bayer RAW */

Definition at line 290 of file ov772x.c.

#define OFMT_MASK   0x03 /* Mask of output format */

Definition at line 286 of file ov772x.c.

#define OFMT_P_BRAW   0x01 /* 01 : Processed Bayer RAW */

Definition at line 288 of file ov772x.c.

#define OFMT_RGB   0x02 /* 10 : RGB */

Definition at line 289 of file ov772x.c.

#define OFMT_YUV   0x00 /* 00 : YUV */

Definition at line 287 of file ov772x.c.

#define OV7720   0x7720

Definition at line 373 of file ov772x.c.

#define OV7725   0x7721

Definition at line 374 of file ov772x.c.

#define OV772X_MAX_HEIGHT   VGA_HEIGHT

Definition at line 368 of file ov772x.c.

#define OV772X_MAX_WIDTH   VGA_WIDTH

Definition at line 367 of file ov772x.c.

#define PID   0x0A /* Product ID Number MSB */

Definition at line 46 of file ov772x.c.

#define PLL_4x   0x40 /* 01: PLL 4x */

Definition at line 243 of file ov772x.c.

#define PLL_6x   0x80 /* 10: PLL 6x */

Definition at line 244 of file ov772x.c.

#define PLL_8x   0xc0 /* 11: PLL 8x */

Definition at line 245 of file ov772x.c.

#define PLL_BYPASS   0x00 /* 00: Bypass PLL */

Definition at line 242 of file ov772x.c.

#define PSHFT   0x1B /* Data format - pixel delay select */

Definition at line 63 of file ov772x.c.

#define QVGA_HEIGHT   240

Definition at line 366 of file ov772x.c.

#define QVGA_WIDTH   320

Definition at line 365 of file ov772x.c.

#define RAVG   0x07 /* V/R Average Level */

Definition at line 43 of file ov772x.c.

#define RED   0x02 /* AWB - Red channel gain setting */

Definition at line 38 of file ov772x.c.

#define REG16   0x16 /* Register 16 */

Definition at line 58 of file ov772x.c.

#define REG28   0x28 /* Register 28 */

Definition at line 73 of file ov772x.c.

#define SCAL0   0xA0 /* Scaling control 0 */

Definition at line 193 of file ov772x.c.

#define SCAL0_ACTRL   0x08 /* Auto scaling factor control */

Definition at line 360 of file ov772x.c.

#define SCAL1   0xA1 /* Scaling control 1 */

Definition at line 194 of file ov772x.c.

#define SCAL1_2_ACTRL   0x04 /* Auto scaling factor control */

Definition at line 361 of file ov772x.c.

#define SCAL2   0xA2 /* Scaling control 2 */

Definition at line 195 of file ov772x.c.

#define SCCB_RESET   0x80 /* 0 : No change */

Definition at line 271 of file ov772x.c.

#define SCOLOR_TEST   0x01 /* Sensor color bar test pattern */

Definition at line 238 of file ov772x.c.

#define SDE   0xA6 /* Special digital effect control */

Definition at line 198 of file ov772x.c.

#define SENSOR_RAW   0x10 /* Sensor RAW */

Definition at line 278 of file ov772x.c.

#define SGLF_ON_OFF   0x02 /* Single frame ON/OFF selection */

Definition at line 318 of file ov772x.c.

#define SGLF_TRIG   0x01 /* Single frame transfer trigger */

Definition at line 319 of file ov772x.c.

#define SIGN   0xAB /* Sign bit for Hue and contrast */

Definition at line 208 of file ov772x.c.

#define SLCT_MASK   0x40 /* Mask of VGA or QVGA */

Definition at line 274 of file ov772x.c.

#define SLCT_QVGA   0x40 /* 1 : QVGA */

Definition at line 276 of file ov772x.c.

#define SLCT_VGA   0x00 /* 0 : VGA */

Definition at line 275 of file ov772x.c.

#define SLOP   0x8D /* Gamma curve highest segment slope */

Definition at line 174 of file ov772x.c.

#define SOFT_SLEEP_MODE   0x10 /* Soft sleep mode */

Definition at line 216 of file ov772x.c.

#define SWAP_MASK   (SWAP_RGB | SWAP_YUV | SWAP_ML)

Definition at line 224 of file ov772x.c.

#define SWAP_ML   0x08 /* Swap output MSB/LSB */

Definition at line 231 of file ov772x.c.

#define SWAP_RGB   0x20 /* Swap B/R output sequence in RGB mode */

Definition at line 229 of file ov772x.c.

#define SWAP_YUV   0x10 /* Swap Y/UV output sequence in YUV mode */

Definition at line 230 of file ov772x.c.

#define TGT_B   0x42 /* BLC blue channel target value */

Definition at line 99 of file ov772x.c.

#define TGT_GB   0x44 /* BLC Gb channel target value */

Definition at line 101 of file ov772x.c.

#define TGT_GR   0x45 /* BLC Gr channel target value */

Definition at line 102 of file ov772x.c.

#define TGT_R   0x43 /* BLC red channel target value */

Definition at line 100 of file ov772x.c.

#define UFIX   0x60 /* U channel fixed value output */

Definition at line 129 of file ov772x.c.

#define UNLMT_STEP   0x40 /* 0 : Step size is limited */

Definition at line 295 of file ov772x.c.

#define USAT   0xA7 /* U component saturation control */

Definition at line 199 of file ov772x.c.

#define UV_ACTRL   0x10 /* UV adjust auto slope control */

Definition at line 359 of file ov772x.c.

#define UV_MASK   0x80 /* UV output sequence option */

Definition at line 342 of file ov772x.c.

#define UV_OFF   0x00 /* OFF */

Definition at line 344 of file ov772x.c.

#define UV_ON   0x80 /* ON */

Definition at line 343 of file ov772x.c.

#define UV_ON_OFF   0x40 /* UV adjust function ON/OFF selection */

Definition at line 333 of file ov772x.c.

#define UVAD_J0   0x9E /* Auto UV adjust contrast 0 */

Definition at line 191 of file ov772x.c.

#define UVAD_J1   0x9F /* Auto UV adjust contrast 1 */

Definition at line 192 of file ov772x.c.

#define VER   0x0B /* Product ID Number LSB */

Definition at line 47 of file ov772x.c.

#define VERSION (   pid,
  ver 
)    ((pid<<8)|(ver&0xFF))

Definition at line 375 of file ov772x.c.

#define VFIX   0x61 /* V channel fixed value output */

Definition at line 130 of file ov772x.c.

#define VFLIP_IMG   0x80 /* Vertical flip image ON/OFF selection */

Definition at line 227 of file ov772x.c.

#define VGA_HEIGHT   480

Definition at line 364 of file ov772x.c.

#define VGA_WIDTH   640

Definition at line 363 of file ov772x.c.

#define VOUTSIZE   0x2C /* Vertical data output size MSBs */

Definition at line 77 of file ov772x.c.

#define VPT   0x26 /* AGC/AEC Fast mode operating region */

Definition at line 72 of file ov772x.c.

#define VSAT   0xA8 /* V component saturation control */

Definition at line 200 of file ov772x.c.

#define VSIZE   0x1A /* Vertical sensor size */

Definition at line 62 of file ov772x.c.

#define VSTART   0x19 /* Vertical frame (row) start high 8-bit */

Definition at line 61 of file ov772x.c.

#define YAVE   0x2F /* Y/G Channel Average value */

Definition at line 80 of file ov772x.c.

#define YUV444_2_422   0x20 /* YUV444 to 422 UV channel option selection */

Definition at line 334 of file ov772x.c.

Function Documentation

MODULE_AUTHOR ( "Kuninori Morimoto"  )
MODULE_DESCRIPTION ( "SoC Camera driver for ov772x"  )
MODULE_DEVICE_TABLE ( i2c  ,
ov772x_id   
)
module_i2c_driver ( ov772x_i2c_driver  )
MODULE_LICENSE ( "GPL v2 )