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

Go to the source code of this file.

Data Structures

struct  regval_list
 
struct  ov5642_datafmt
 
struct  ov5642
 

Macros

#define REG_CHIP_ID_HIGH   0x300a
 
#define REG_CHIP_ID_LOW   0x300b
 
#define REG_WINDOW_START_X_HIGH   0x3800
 
#define REG_WINDOW_START_X_LOW   0x3801
 
#define REG_WINDOW_START_Y_HIGH   0x3802
 
#define REG_WINDOW_START_Y_LOW   0x3803
 
#define REG_WINDOW_WIDTH_HIGH   0x3804
 
#define REG_WINDOW_WIDTH_LOW   0x3805
 
#define REG_WINDOW_HEIGHT_HIGH   0x3806
 
#define REG_WINDOW_HEIGHT_LOW   0x3807
 
#define REG_OUT_WIDTH_HIGH   0x3808
 
#define REG_OUT_WIDTH_LOW   0x3809
 
#define REG_OUT_HEIGHT_HIGH   0x380a
 
#define REG_OUT_HEIGHT_LOW   0x380b
 
#define REG_OUT_TOTAL_WIDTH_HIGH   0x380c
 
#define REG_OUT_TOTAL_WIDTH_LOW   0x380d
 
#define REG_OUT_TOTAL_HEIGHT_HIGH   0x380e
 
#define REG_OUT_TOTAL_HEIGHT_LOW   0x380f
 
#define REG_OUTPUT_FORMAT   0x4300
 
#define REG_ISP_CTRL_01   0x5001
 
#define REG_AVG_WINDOW_END_X_HIGH   0x5682
 
#define REG_AVG_WINDOW_END_X_LOW   0x5683
 
#define REG_AVG_WINDOW_END_Y_HIGH   0x5686
 
#define REG_AVG_WINDOW_END_Y_LOW   0x5687
 
#define OV5642_SENSOR_SIZE_X   2592
 
#define OV5642_SENSOR_SIZE_Y   1944
 
#define OV5642_MAX_WIDTH   OV5642_SENSOR_SIZE_X
 
#define OV5642_MAX_HEIGHT   720
 
#define OV5642_DEFAULT_WIDTH   1280
 
#define OV5642_DEFAULT_HEIGHT   OV5642_MAX_HEIGHT
 
#define BLANKING_EXTRA_WIDTH   500
 
#define BLANKING_EXTRA_HEIGHT   20
 
#define BLANKING_MIN_HEIGHT   1000
 

Functions

 MODULE_DEVICE_TABLE (i2c, ov5642_id)
 
 module_i2c_driver (ov5642_i2c_driver)
 
 MODULE_DESCRIPTION ("Omnivision OV5642 Camera driver")
 
 MODULE_AUTHOR ("Bastian Hecht <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define BLANKING_EXTRA_HEIGHT   20

Definition at line 80 of file ov5642.c.

#define BLANKING_EXTRA_WIDTH   500

Definition at line 79 of file ov5642.c.

#define BLANKING_MIN_HEIGHT   1000

Definition at line 87 of file ov5642.c.

#define OV5642_DEFAULT_HEIGHT   OV5642_MAX_HEIGHT

Definition at line 76 of file ov5642.c.

#define OV5642_DEFAULT_WIDTH   1280

Definition at line 75 of file ov5642.c.

#define OV5642_MAX_HEIGHT   720

Definition at line 72 of file ov5642.c.

#define OV5642_MAX_WIDTH   OV5642_SENSOR_SIZE_X

Definition at line 71 of file ov5642.c.

#define OV5642_SENSOR_SIZE_X   2592

Definition at line 58 of file ov5642.c.

#define OV5642_SENSOR_SIZE_Y   1944

Definition at line 59 of file ov5642.c.

#define REG_AVG_WINDOW_END_X_HIGH   0x5682

Definition at line 52 of file ov5642.c.

#define REG_AVG_WINDOW_END_X_LOW   0x5683

Definition at line 53 of file ov5642.c.

#define REG_AVG_WINDOW_END_Y_HIGH   0x5686

Definition at line 54 of file ov5642.c.

#define REG_AVG_WINDOW_END_Y_LOW   0x5687

Definition at line 55 of file ov5642.c.

#define REG_CHIP_ID_HIGH   0x300a

Definition at line 31 of file ov5642.c.

#define REG_CHIP_ID_LOW   0x300b

Definition at line 32 of file ov5642.c.

#define REG_ISP_CTRL_01   0x5001

Definition at line 51 of file ov5642.c.

#define REG_OUT_HEIGHT_HIGH   0x380a

Definition at line 44 of file ov5642.c.

#define REG_OUT_HEIGHT_LOW   0x380b

Definition at line 45 of file ov5642.c.

#define REG_OUT_TOTAL_HEIGHT_HIGH   0x380e

Definition at line 48 of file ov5642.c.

#define REG_OUT_TOTAL_HEIGHT_LOW   0x380f

Definition at line 49 of file ov5642.c.

#define REG_OUT_TOTAL_WIDTH_HIGH   0x380c

Definition at line 46 of file ov5642.c.

#define REG_OUT_TOTAL_WIDTH_LOW   0x380d

Definition at line 47 of file ov5642.c.

#define REG_OUT_WIDTH_HIGH   0x3808

Definition at line 42 of file ov5642.c.

#define REG_OUT_WIDTH_LOW   0x3809

Definition at line 43 of file ov5642.c.

#define REG_OUTPUT_FORMAT   0x4300

Definition at line 50 of file ov5642.c.

#define REG_WINDOW_HEIGHT_HIGH   0x3806

Definition at line 40 of file ov5642.c.

#define REG_WINDOW_HEIGHT_LOW   0x3807

Definition at line 41 of file ov5642.c.

#define REG_WINDOW_START_X_HIGH   0x3800

Definition at line 34 of file ov5642.c.

#define REG_WINDOW_START_X_LOW   0x3801

Definition at line 35 of file ov5642.c.

#define REG_WINDOW_START_Y_HIGH   0x3802

Definition at line 36 of file ov5642.c.

#define REG_WINDOW_START_Y_LOW   0x3803

Definition at line 37 of file ov5642.c.

#define REG_WINDOW_WIDTH_HIGH   0x3804

Definition at line 38 of file ov5642.c.

#define REG_WINDOW_WIDTH_LOW   0x3805

Definition at line 39 of file ov5642.c.

Function Documentation

MODULE_AUTHOR ( "Bastian Hecht <[email protected]>"  )
MODULE_DESCRIPTION ( "Omnivision OV5642 Camera driver )
MODULE_DEVICE_TABLE ( i2c  ,
ov5642_id   
)
module_i2c_driver ( ov5642_i2c_driver  )
MODULE_LICENSE ( "GPL v2 )