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

Go to the source code of this file.

Data Structures

struct  mt9t031
 

Macros

#define MT9T031_CHIP_VERSION   0x00
 
#define MT9T031_ROW_START   0x01
 
#define MT9T031_COLUMN_START   0x02
 
#define MT9T031_WINDOW_HEIGHT   0x03
 
#define MT9T031_WINDOW_WIDTH   0x04
 
#define MT9T031_HORIZONTAL_BLANKING   0x05
 
#define MT9T031_VERTICAL_BLANKING   0x06
 
#define MT9T031_OUTPUT_CONTROL   0x07
 
#define MT9T031_SHUTTER_WIDTH_UPPER   0x08
 
#define MT9T031_SHUTTER_WIDTH   0x09
 
#define MT9T031_PIXEL_CLOCK_CONTROL   0x0a
 
#define MT9T031_FRAME_RESTART   0x0b
 
#define MT9T031_SHUTTER_DELAY   0x0c
 
#define MT9T031_RESET   0x0d
 
#define MT9T031_READ_MODE_1   0x1e
 
#define MT9T031_READ_MODE_2   0x20
 
#define MT9T031_READ_MODE_3   0x21
 
#define MT9T031_ROW_ADDRESS_MODE   0x22
 
#define MT9T031_COLUMN_ADDRESS_MODE   0x23
 
#define MT9T031_GLOBAL_GAIN   0x35
 
#define MT9T031_CHIP_ENABLE   0xF8
 
#define MT9T031_MAX_HEIGHT   1536
 
#define MT9T031_MAX_WIDTH   2048
 
#define MT9T031_MIN_HEIGHT   2
 
#define MT9T031_MIN_WIDTH   18
 
#define MT9T031_HORIZONTAL_BLANK   142
 
#define MT9T031_VERTICAL_BLANK   25
 
#define MT9T031_COLUMN_SKIP   32
 
#define MT9T031_ROW_SKIP   20
 

Functions

 MODULE_DEVICE_TABLE (i2c, mt9t031_id)
 
 module_i2c_driver (mt9t031_i2c_driver)
 
 MODULE_DESCRIPTION ("Micron MT9T031 Camera driver")
 
 MODULE_AUTHOR ("Guennadi Liakhovetski <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define MT9T031_CHIP_ENABLE   0xF8

Definition at line 59 of file mt9t031.c.

#define MT9T031_CHIP_VERSION   0x00

Definition at line 39 of file mt9t031.c.

#define MT9T031_COLUMN_ADDRESS_MODE   0x23

Definition at line 57 of file mt9t031.c.

#define MT9T031_COLUMN_SKIP   32

Definition at line 67 of file mt9t031.c.

#define MT9T031_COLUMN_START   0x02

Definition at line 41 of file mt9t031.c.

#define MT9T031_FRAME_RESTART   0x0b

Definition at line 50 of file mt9t031.c.

#define MT9T031_GLOBAL_GAIN   0x35

Definition at line 58 of file mt9t031.c.

#define MT9T031_HORIZONTAL_BLANK   142

Definition at line 65 of file mt9t031.c.

#define MT9T031_HORIZONTAL_BLANKING   0x05

Definition at line 44 of file mt9t031.c.

#define MT9T031_MAX_HEIGHT   1536

Definition at line 61 of file mt9t031.c.

#define MT9T031_MAX_WIDTH   2048

Definition at line 62 of file mt9t031.c.

#define MT9T031_MIN_HEIGHT   2

Definition at line 63 of file mt9t031.c.

#define MT9T031_MIN_WIDTH   18

Definition at line 64 of file mt9t031.c.

#define MT9T031_OUTPUT_CONTROL   0x07

Definition at line 46 of file mt9t031.c.

#define MT9T031_PIXEL_CLOCK_CONTROL   0x0a

Definition at line 49 of file mt9t031.c.

#define MT9T031_READ_MODE_1   0x1e

Definition at line 53 of file mt9t031.c.

#define MT9T031_READ_MODE_2   0x20

Definition at line 54 of file mt9t031.c.

#define MT9T031_READ_MODE_3   0x21

Definition at line 55 of file mt9t031.c.

#define MT9T031_RESET   0x0d

Definition at line 52 of file mt9t031.c.

#define MT9T031_ROW_ADDRESS_MODE   0x22

Definition at line 56 of file mt9t031.c.

#define MT9T031_ROW_SKIP   20

Definition at line 68 of file mt9t031.c.

#define MT9T031_ROW_START   0x01

Definition at line 40 of file mt9t031.c.

#define MT9T031_SHUTTER_DELAY   0x0c

Definition at line 51 of file mt9t031.c.

#define MT9T031_SHUTTER_WIDTH   0x09

Definition at line 48 of file mt9t031.c.

#define MT9T031_SHUTTER_WIDTH_UPPER   0x08

Definition at line 47 of file mt9t031.c.

#define MT9T031_VERTICAL_BLANK   25

Definition at line 66 of file mt9t031.c.

#define MT9T031_VERTICAL_BLANKING   0x06

Definition at line 45 of file mt9t031.c.

#define MT9T031_WINDOW_HEIGHT   0x03

Definition at line 42 of file mt9t031.c.

#define MT9T031_WINDOW_WIDTH   0x04

Definition at line 43 of file mt9t031.c.

Function Documentation

MODULE_AUTHOR ( "Guennadi Liakhovetski <[email protected]>"  )
MODULE_DESCRIPTION ( "Micron MT9T031 Camera driver )
MODULE_DEVICE_TABLE ( i2c  ,
mt9t031_id   
)
module_i2c_driver ( mt9t031_i2c_driver  )
MODULE_LICENSE ( "GPL v2 )