#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/v4l2-mediabus.h>
#include <linux/videodev2.h>
#include <media/mt9t112.h>
#include <media/soc_camera.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-common.h>
Go to the source code of this file.
|
#define | MAX_WIDTH 2048 |
|
#define | MAX_HEIGHT 1536 |
|
#define | VGA_WIDTH 640 |
|
#define | VGA_HEIGHT 480 |
|
#define | ECHECKER(ret, x) |
|
#define | mt9t112_reg_write(ret, client, a, b) ECHECKER(ret, __mt9t112_reg_write(client, a, b)) |
|
#define | mt9t112_mcu_write(ret, client, a, b) ECHECKER(ret, __mt9t112_mcu_write(client, a, b)) |
|
#define | mt9t112_reg_mask_set(ret, client, a, b, c) ECHECKER(ret, __mt9t112_reg_mask_set(client, a, b, c)) |
|
#define | mt9t112_mcu_mask_set(ret, client, a, b, c) ECHECKER(ret, __mt9t112_mcu_mask_set(client, a, b, c)) |
|
#define | mt9t112_reg_read(ret, client, a) ECHECKER(ret, __mt9t112_reg_read(client, a)) |
|
#define | _VAR(id, offset, base) (base | (id & 0x1f) << 10 | (offset & 0x3ff)) |
|
#define | VAR(id, offset) _VAR(id, offset, 0x0000) |
|
#define | VAR8(id, offset) _VAR(id, offset, 0x8000) |
|
#define | INIT_DONE (1 << 0) |
|
#define | PCLK_RISING (1 << 1) |
|
#define | CLOCK_INFO(a, b) |
|
#define CLOCK_INFO |
( |
|
a, |
|
|
|
b |
|
) |
| |
#define ECHECKER |
( |
|
ret, |
|
|
|
x |
|
) |
| |
#define INIT_DONE (1 << 0) |
#define PCLK_RISING (1 << 1) |
MODULE_AUTHOR |
( |
"Kuninori Morimoto" |
| ) |
|
MODULE_DESCRIPTION |
( |
"SoC Camera driver for mt9t112" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
mt9t112_id |
|
|
) |
| |
module_i2c_driver |
( |
mt9t112_i2c_driver |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|