mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
camera: add mt9p111 driver for FIH Project, but driver havn't debug
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#define RK29_CAM_SENSOR_NAME_OV5640 "ov5640"
|
||||
#define RK29_CAM_SENSOR_NAME_OV5642 "ov5642"
|
||||
#define RK29_CAM_SENSOR_NAME_S5K6AA "s5k6aa"
|
||||
#define RK29_CAM_SENSOR_NAME_MT9P111 "mt9p111"
|
||||
|
||||
#define RK29_CAM_POWERACTIVE_BITPOS 0x00
|
||||
#define RK29_CAM_POWERACTIVE_MASK (1<<RK29_CAM_POWERACTIVE_BITPOS)
|
||||
|
||||
@@ -840,7 +840,13 @@ config SOC_CAMERA_MT9T031
|
||||
depends on SOC_CAMERA && I2C
|
||||
help
|
||||
This driver supports MT9T031 cameras from Micron.
|
||||
|
||||
|
||||
config SOC_CAMERA_MT9P111
|
||||
tristate "mt9p111support"
|
||||
depends on SOC_CAMERA && I2C
|
||||
help
|
||||
This driver supports MT9P111 cameras from Micron
|
||||
|
||||
config SOC_CAMERA_MT9V022
|
||||
tristate "mt9v022 support"
|
||||
depends on SOC_CAMERA && I2C
|
||||
|
||||
@@ -76,6 +76,7 @@ obj-$(CONFIG_SOC_CAMERA_MT9M001) += mt9m001.o
|
||||
obj-$(CONFIG_SOC_CAMERA_MT9M111) += mt9m111.o
|
||||
obj-$(CONFIG_SOC_CAMERA_MT9T031) += mt9t031.o
|
||||
obj-$(CONFIG_SOC_CAMERA_MT9V022) += mt9v022.o
|
||||
obj-$(CONFIG_SOC_CAMERA_MT9P111) += mt9p111.o
|
||||
obj-$(CONFIG_SOC_CAMERA_OV772X) += ov772x.o
|
||||
obj-$(CONFIG_SOC_CAMERA_TW9910) += tw9910.o
|
||||
obj-$(CONFIG_SOC_CAMERA_OV7675) += ov7675.o
|
||||
|
||||
3861
drivers/media/video/mt9p111.c
Executable file
3861
drivers/media/video/mt9p111.c
Executable file
File diff suppressed because it is too large
Load Diff
26
drivers/media/video/mt9p111.h
Executable file
26
drivers/media/video/mt9p111.h
Executable file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Driver for MT9P111 CMOS Image Sensor from Aptina
|
||||
*
|
||||
* Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#ifndef __MT9P111_H__
|
||||
#define __MT9P111_H__
|
||||
struct reginfo
|
||||
{
|
||||
u16 reg;
|
||||
u16 val;
|
||||
};
|
||||
|
||||
#define SEQUENCE_INIT 0x00
|
||||
#define SEQUENCE_NORMAL 0x01
|
||||
|
||||
#define SEQUENCE_PROPERTY 0xFFFC
|
||||
#define SEQUENCE_WAIT_MS 0xFFFD
|
||||
#define SEQUENCE_WAIT_US 0xFFFE
|
||||
#define SEQUENCE_END 0xFFFF
|
||||
#endif
|
||||
@@ -73,7 +73,9 @@ enum {
|
||||
|
||||
/* module saa7146: reserved range 300-309 */
|
||||
V4L2_IDENT_SAA7146 = 300,
|
||||
V4L2_IDENT_S5K66A = 350, /* ddl@rock-chips.com : s5k66a support */
|
||||
|
||||
/* Samsung sensors: reserved range 310-319 */
|
||||
V4L2_IDENT_S5K66A = 310, /* ddl@rock-chips.com : s5k66a support */
|
||||
|
||||
/* Conexant MPEG encoder/decoders: reserved range 400-420 */
|
||||
V4L2_IDENT_CX23418_843 = 403, /* Integrated A/V Decoder on the '418 */
|
||||
@@ -257,6 +259,8 @@ enum {
|
||||
V4L2_IDENT_MT9V111 = 45031,
|
||||
V4L2_IDENT_MT9V112 = 45032,
|
||||
|
||||
V4L2_IDENT_MT9P111 = 45033, /* ddl@rock-chips.com : MT9P111 support */
|
||||
|
||||
/* HV7131R CMOS sensor: just ident 46000 */
|
||||
V4L2_IDENT_HV7131R = 46000,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user