camera: update mt9p111 and add hm5065

This commit is contained in:
ddl
2013-04-02 18:47:34 +08:00
parent ad5586b986
commit 78b85738fe
7 changed files with 7828 additions and 1249 deletions

View File

@@ -71,6 +71,7 @@
#define RK29_CAM_SENSOR_S5K5CA s5k5ca
#define RK29_CAM_ISP_MTK9335 mtk9335isp
#define RK29_CAM_SENSOR_GC2035 gc2035
#define RK29_CAM_SENSOR_HM5065 hm5065
#define RK29_CAM_SENSOR_NAME_OV7675 "ov7675"
#define RK29_CAM_SENSOR_NAME_OV9650 "ov9650"
@@ -104,6 +105,7 @@
#define RK29_CAM_SENSOR_NAME_S5K5CA "s5k5ca"
#define RK29_CAM_ISP_NAME_MTK9335ISP "mtk9335isp"
#define RK29_CAM_SENSOR_NAME_GC2035 "gc2035"
#define RK29_CAM_SENSOR_NAME_HM5065 "hm5065"
#define ov7675_FULL_RESOLUTION 0x30000 // 0.3 megapixel
#define ov9650_FULL_RESOLUTION 0x130000 // 1.3 megapixel
@@ -157,6 +159,7 @@
#define s5k5ca_FULL_RESOLUTION 0x300000 // 3 megapixel
#define mtk9335isp_FULL_RESOLUTION 0x500000 //5 megapixel
#define gc2035_FULL_RESOLUTION 0x200000 // 2 megapixel
#define hm5065_FULL_RESOLUTION 0x500000 // 5 megapixel
/*---------------- Camera Sensor Must Define Macro End ------------------------*/

View File

@@ -1327,6 +1327,12 @@ config SP2518_USER_DEFINED_SERIES
bool "sp2518 user defined init series"
default n
config SOC_CAMERA_HM5065
tristate "hm5065 camera support for rockchip"
depends on SOC_CAMERA && I2C
help
This is a HM5065 camera driver for rockchip
config SOC_CAMERA_OV9640
tristate "ov9640 camera support"

View File

@@ -118,6 +118,7 @@ obj-$(CONFIG_SOC_CAMERA_GC0329) += gc0329.o
obj-$(CONFIG_SOC_CAMERA_SP0838) += sp0838.o
obj-$(CONFIG_SOC_CAMERA_SP2518) += sp2518.o
obj-$(CONFIG_SOC_CAMERA_S5K5CA) += s5k5ca.o
obj-$(CONFIG_SOC_CAMERA_HM5065) += hm5065.o
obj-$(CONFIG_SOC_CAMERA_MV9335) += mv9335/
# And now the v4l2 drivers:

5839
drivers/media/video/hm5065.c Executable file

File diff suppressed because it is too large Load Diff

11
drivers/media/video/hm5065.h Executable file
View File

@@ -0,0 +1,11 @@
#ifndef __HM5065_H__
#define __HM5065_H__
#define SEQUENCE_INIT 0x00
#define SEQUENCE_NORMAL 0x01
#define SEQUENCE_PROPERTY 0xFFFD
#define SEQUENCE_WAIT_MS 0xFFFE
#define SEQUENCE_END 0xFFFC
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -360,6 +360,7 @@ enum {
V4L2_IDENT_SIV121D= 64141, /* ddl@rock-chips.com : sid130B support */
V4L2_IDENT_HM5065 = 64151,
/* Don't just add new IDs at the end: KEEP THIS LIST ORDERED BY ID! */
};