不好意思,前几天不在,现在把我修改的内容贴出来,辛苦版主了,另外硬件上跟友善的板子是一样的
修改mach-mini210.c
填入内容:
#ifdef CONFIG_VIDEO_GT2015
#include <media/GT2015_platform.h>
#define CAM_ITU_CH_A
#endif
...............
static void set_cam2015_main_power(int onoff)
{
printk("Set cam back state:%s\n",onoff?("on"):("off"));
return ;
}
...............
#ifdef CONFIG_VIDEO_GT2015
static struct GT2015_platform_data GT2015_plat = {
.default_width = 1280,
.default_height = 1024,
.pixelformat = V4L2_PIX_FMT_YUYV,
.freq = 40000000,
.is_mipi = 0,
};
static struct i2c_board_info GT2015_i2c_info = {
I2C_BOARD_INFO("GT2015", 0x60>>1),
.platform_data = >2015_plat,
};
static struct s3c_platform_camera GT2015 = {
.id = CAMERA_PAR_A,
.type = CAM_TYPE_ITU,
.fmt = ITU_601_YCBCR422_8BIT,
.order422 = CAM_ORDER422_8BIT_YCBYCR,
.i2c_busnum = 0,
.info = >2015_i2c_info,
.pixelformat = V4L2_PIX_FMT_YUYV,
.srclk_name = "mout_mpll",
.clk_name = "sclk_cam1",
.clk_rate = 24000000, /* 24MHz */
.line_length = 1920, /* 640*480 */
/* default resol for preview kind of thing */
.width = 1280,
.height = 1024,
.window = {
.left = 0,
.top = 0,
.width = 1280,
.height = 1024,
},
/* Polarity */
.inv_pclk = 1,
.inv_vsync = 1,
.inv_href = 0,
.inv_hsync = 0,
.initialized = 0,
.cam_power=set_cam2015_main_power
};
#endif
...........
static struct s3c_platform_fimc fimc_plat_lsi = {
............
#ifdef CONFIG_VIDEO_GT2015//add by zzmy
>2015,
#endif
...........
}
struct GT2015_platform_data {
unsigned int default_width;
unsigned int default_height;
unsigned int pixelformat;
int freq; /* MCLK in KHz */
/* This SoC supports Parallel & CSI-2 */
int is_mipi;
};