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

Go to the source code of this file.

Data Structures

struct  mt9v022_datafmt
 
struct  mt9v02x_register
 
struct  mt9v022
 

Macros

#define MT9V022_CHIP_VERSION   0x00
 
#define MT9V022_COLUMN_START   0x01
 
#define MT9V022_ROW_START   0x02
 
#define MT9V022_WINDOW_HEIGHT   0x03
 
#define MT9V022_WINDOW_WIDTH   0x04
 
#define MT9V022_HORIZONTAL_BLANKING   0x05
 
#define MT9V022_VERTICAL_BLANKING   0x06
 
#define MT9V022_CHIP_CONTROL   0x07
 
#define MT9V022_SHUTTER_WIDTH1   0x08
 
#define MT9V022_SHUTTER_WIDTH2   0x09
 
#define MT9V022_SHUTTER_WIDTH_CTRL   0x0a
 
#define MT9V022_TOTAL_SHUTTER_WIDTH   0x0b
 
#define MT9V022_RESET   0x0c
 
#define MT9V022_READ_MODE   0x0d
 
#define MT9V022_MONITOR_MODE   0x0e
 
#define MT9V022_PIXEL_OPERATION_MODE   0x0f
 
#define MT9V022_LED_OUT_CONTROL   0x1b
 
#define MT9V022_ADC_MODE_CONTROL   0x1c
 
#define MT9V022_ANALOG_GAIN   0x35
 
#define MT9V022_BLACK_LEVEL_CALIB_CTRL   0x47
 
#define MT9V022_PIXCLK_FV_LV   0x74
 
#define MT9V022_DIGITAL_TEST_PATTERN   0x7f
 
#define MT9V022_AEC_AGC_ENABLE   0xAF
 
#define MT9V022_MAX_TOTAL_SHUTTER_WIDTH   0xBD
 
#define MT9V024_PIXCLK_FV_LV   0x72
 
#define MT9V024_MAX_TOTAL_SHUTTER_WIDTH   0xAD
 
#define MT9V022_CHIP_CONTROL_DEFAULT   0x188
 
#define MT9V022_MAX_WIDTH   752
 
#define MT9V022_MAX_HEIGHT   480
 
#define MT9V022_MIN_WIDTH   48
 
#define MT9V022_MIN_HEIGHT   32
 
#define MT9V022_COLUMN_SKIP   1
 
#define MT9V022_ROW_SKIP   4
 
#define is_mt9v024(id)   (id == 0x1324)
 

Functions

 module_param (sensor_type, charp, S_IRUGO)
 
 MODULE_PARM_DESC (sensor_type,"Sensor type: \"colour\" or \"monochrome\"")
 
 MODULE_DEVICE_TABLE (i2c, mt9v022_id)
 
 module_i2c_driver (mt9v022_i2c_driver)
 
 MODULE_DESCRIPTION ("Micron MT9V022 Camera driver")
 
 MODULE_AUTHOR ("Guennadi Liakhovetski <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define is_mt9v024 (   id)    (id == 0x1324)

Definition at line 74 of file mt9v022.c.

#define MT9V022_ADC_MODE_CONTROL   0x1c

Definition at line 52 of file mt9v022.c.

#define MT9V022_AEC_AGC_ENABLE   0xAF

Definition at line 57 of file mt9v022.c.

#define MT9V022_ANALOG_GAIN   0x35

Definition at line 53 of file mt9v022.c.

#define MT9V022_BLACK_LEVEL_CALIB_CTRL   0x47

Definition at line 54 of file mt9v022.c.

#define MT9V022_CHIP_CONTROL   0x07

Definition at line 42 of file mt9v022.c.

#define MT9V022_CHIP_CONTROL_DEFAULT   0x188

Definition at line 65 of file mt9v022.c.

#define MT9V022_CHIP_VERSION   0x00

Definition at line 35 of file mt9v022.c.

#define MT9V022_COLUMN_SKIP   1

Definition at line 71 of file mt9v022.c.

#define MT9V022_COLUMN_START   0x01

Definition at line 36 of file mt9v022.c.

#define MT9V022_DIGITAL_TEST_PATTERN   0x7f

Definition at line 56 of file mt9v022.c.

#define MT9V022_HORIZONTAL_BLANKING   0x05

Definition at line 40 of file mt9v022.c.

#define MT9V022_LED_OUT_CONTROL   0x1b

Definition at line 51 of file mt9v022.c.

#define MT9V022_MAX_HEIGHT   480

Definition at line 68 of file mt9v022.c.

#define MT9V022_MAX_TOTAL_SHUTTER_WIDTH   0xBD

Definition at line 58 of file mt9v022.c.

#define MT9V022_MAX_WIDTH   752

Definition at line 67 of file mt9v022.c.

#define MT9V022_MIN_HEIGHT   32

Definition at line 70 of file mt9v022.c.

#define MT9V022_MIN_WIDTH   48

Definition at line 69 of file mt9v022.c.

#define MT9V022_MONITOR_MODE   0x0e

Definition at line 49 of file mt9v022.c.

#define MT9V022_PIXCLK_FV_LV   0x74

Definition at line 55 of file mt9v022.c.

#define MT9V022_PIXEL_OPERATION_MODE   0x0f

Definition at line 50 of file mt9v022.c.

#define MT9V022_READ_MODE   0x0d

Definition at line 48 of file mt9v022.c.

#define MT9V022_RESET   0x0c

Definition at line 47 of file mt9v022.c.

#define MT9V022_ROW_SKIP   4

Definition at line 72 of file mt9v022.c.

#define MT9V022_ROW_START   0x02

Definition at line 37 of file mt9v022.c.

#define MT9V022_SHUTTER_WIDTH1   0x08

Definition at line 43 of file mt9v022.c.

#define MT9V022_SHUTTER_WIDTH2   0x09

Definition at line 44 of file mt9v022.c.

#define MT9V022_SHUTTER_WIDTH_CTRL   0x0a

Definition at line 45 of file mt9v022.c.

#define MT9V022_TOTAL_SHUTTER_WIDTH   0x0b

Definition at line 46 of file mt9v022.c.

#define MT9V022_VERTICAL_BLANKING   0x06

Definition at line 41 of file mt9v022.c.

#define MT9V022_WINDOW_HEIGHT   0x03

Definition at line 38 of file mt9v022.c.

#define MT9V022_WINDOW_WIDTH   0x04

Definition at line 39 of file mt9v022.c.

#define MT9V024_MAX_TOTAL_SHUTTER_WIDTH   0xAD

Definition at line 62 of file mt9v022.c.

#define MT9V024_PIXCLK_FV_LV   0x72

Definition at line 61 of file mt9v022.c.

Function Documentation

MODULE_AUTHOR ( "Guennadi Liakhovetski <[email protected]>"  )
MODULE_DESCRIPTION ( "Micron MT9V022 Camera driver )
MODULE_DEVICE_TABLE ( i2c  ,
mt9v022_id   
)
module_i2c_driver ( mt9v022_i2c_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( sensor_type  ,
charp  ,
S_IRUGO   
)
MODULE_PARM_DESC ( sensor_type  ,
"Sensor type: \"colour\" or \"monochrome\""   
)