#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.
#define is_mt9v024 |
( |
|
id | ) |
(id == 0x1324) |
#define MT9V022_ADC_MODE_CONTROL 0x1c |
#define MT9V022_AEC_AGC_ENABLE 0xAF |
#define MT9V022_ANALOG_GAIN 0x35 |
#define MT9V022_BLACK_LEVEL_CALIB_CTRL 0x47 |
#define MT9V022_CHIP_CONTROL 0x07 |
#define MT9V022_CHIP_CONTROL_DEFAULT 0x188 |
#define MT9V022_CHIP_VERSION 0x00 |
#define MT9V022_COLUMN_SKIP 1 |
#define MT9V022_COLUMN_START 0x01 |
#define MT9V022_DIGITAL_TEST_PATTERN 0x7f |
#define MT9V022_HORIZONTAL_BLANKING 0x05 |
#define MT9V022_LED_OUT_CONTROL 0x1b |
#define MT9V022_MAX_HEIGHT 480 |
#define MT9V022_MAX_TOTAL_SHUTTER_WIDTH 0xBD |
#define MT9V022_MAX_WIDTH 752 |
#define MT9V022_MIN_HEIGHT 32 |
#define MT9V022_MIN_WIDTH 48 |
#define MT9V022_MONITOR_MODE 0x0e |
#define MT9V022_PIXCLK_FV_LV 0x74 |
#define MT9V022_PIXEL_OPERATION_MODE 0x0f |
#define MT9V022_READ_MODE 0x0d |
#define MT9V022_RESET 0x0c |
#define MT9V022_ROW_SKIP 4 |
#define MT9V022_ROW_START 0x02 |
#define MT9V022_SHUTTER_WIDTH1 0x08 |
#define MT9V022_SHUTTER_WIDTH2 0x09 |
#define MT9V022_SHUTTER_WIDTH_CTRL 0x0a |
#define MT9V022_TOTAL_SHUTTER_WIDTH 0x0b |
#define MT9V022_VERTICAL_BLANKING 0x06 |
#define MT9V022_WINDOW_HEIGHT 0x03 |
#define MT9V022_WINDOW_WIDTH 0x04 |
#define MT9V024_MAX_TOTAL_SHUTTER_WIDTH 0xAD |
#define MT9V024_PIXCLK_FV_LV 0x72 |
MODULE_DESCRIPTION |
( |
"Micron MT9V022 Camera driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
mt9v022_id |
|
|
) |
| |
module_i2c_driver |
( |
mt9v022_i2c_driver |
| ) |
|
module_param |
( |
sensor_type |
, |
|
|
charp |
, |
|
|
S_IRUGO |
|
|
) |
| |
MODULE_PARM_DESC |
( |
sensor_type |
, |
|
|
"Sensor type: \"colour\" or \"monochrome\"" |
|
|
) |
| |