#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/math64.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/v4l2-mediabus.h>
#include <media/media-entity.h>
#include <media/mt9m032.h>
#include <media/v4l2-ctrls.h>
#include <media/v4l2-device.h>
#include <media/v4l2-subdev.h>
#include "aptina-pll.h"
Go to the source code of this file.
#define MT9M032_CHIP_VERSION 0x00 |
#define MT9M032_CHIP_VERSION_VALUE 0x1402 |
#define MT9M032_COLUMN_SIZE 0x04 |
#define MT9M032_COLUMN_SIZE_DEF 1440 |
#define MT9M032_COLUMN_SIZE_MAX 1600 |
#define MT9M032_COLUMN_SIZE_MIN 32 |
#define MT9M032_COLUMN_START 0x02 |
#define MT9M032_COLUMN_START_DEF 16 |
#define MT9M032_COLUMN_START_MAX 1600 |
#define MT9M032_COLUMN_START_MIN 0 |
#define MT9M032_FORMATTER1 0x9e |
#define MT9M032_FORMATTER2 0x9f |
#define MT9M032_FORMATTER2_DOUT_EN 0x1000 |
#define MT9M032_FORMATTER2_PIXCLK_EN 0x2000 |
#define MT9M032_GAIN_ALL 0x35 |
#define MT9M032_GAIN_AMUL_SHIFT 6 |
#define MT9M032_GAIN_ANALOG_MASK 0x3f |
#define MT9M032_GAIN_BLUE 0x2c |
#define MT9M032_GAIN_DIGITAL_MASK 0x7f |
#define MT9M032_GAIN_DIGITAL_SHIFT 8 |
#define MT9M032_GAIN_GREEN1 0x2b |
#define MT9M032_GAIN_GREEN2 0x2e |
#define MT9M032_GAIN_RED 0x2d |
#define MT9M032_HBLANK 0x05 |
#define MT9M032_PIX_CLK_CTRL 0x0a |
#define MT9M032_PIX_CLK_CTRL_INV_PIXCLK 0x8000 |
#define MT9M032_PIXEL_ARRAY_HEIGHT 1152 |
#define MT9M032_PIXEL_ARRAY_WIDTH 1600 |
#define MT9M032_PLL_CONFIG1 0x11 |
#define MT9M032_PLL_CONFIG1_MUL_SHIFT 8 |
#define MT9M032_PLL_CONFIG1_OUTDIV_MASK 0x3f |
#define MT9M032_READ_MODE1 0x1e |
#define MT9M032_READ_MODE2 0x20 |
#define MT9M032_READ_MODE2_HFLIP_SHIFT 14 |
#define MT9M032_READ_MODE2_ROW_BLC 0x40 |
#define MT9M032_READ_MODE2_VFLIP_SHIFT 15 |
#define MT9M032_RESET 0x0d |
#define MT9M032_RESTART 0x0b |
#define MT9M032_ROW_SIZE 0x03 |
#define MT9M032_ROW_SIZE_DEF 1080 |
#define MT9M032_ROW_SIZE_MAX 1152 |
#define MT9M032_ROW_SIZE_MIN 32 |
#define MT9M032_ROW_START 0x01 |
#define MT9M032_ROW_START_DEF 60 |
#define MT9M032_ROW_START_MAX 1152 |
#define MT9M032_ROW_START_MIN 0 |
#define MT9M032_SHUTTER_WIDTH_DEF 1943 |
#define MT9M032_SHUTTER_WIDTH_HIGH 0x08 |
#define MT9M032_SHUTTER_WIDTH_LOW 0x09 |
#define MT9M032_SHUTTER_WIDTH_MAX 1048575 |
#define MT9M032_SHUTTER_WIDTH_MIN 1 |
#define MT9M032_VBLANK 0x06 |
#define MT9M032_VBLANK_MAX 0x7ff |
#define MT9P031_PLL_CONFIG2 0x11 |
#define MT9P031_PLL_CONFIG2_P1_DIV_MASK 0x1f |
#define MT9P031_PLL_CONTROL 0x10 |
#define MT9P031_PLL_CONTROL_PWROFF 0x0050 |
#define MT9P031_PLL_CONTROL_PWRON 0x0051 |
#define MT9P031_PLL_CONTROL_USEPLL 0x0052 |
MODULE_DESCRIPTION |
( |
"MT9M032 camera sensor driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
mt9m032_id_table |
|
|
) |
| |
module_i2c_driver |
( |
mt9m032_i2c_driver |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|