|
本帖最后由 nipingbo 于 2015-11-19 09:49 编辑
4418上OV5640的i2c寄存器可以设置成功,同步波形都有,信号也有,就是获取不到图片 一片黑
nxp_capture_platformdata capture_plat_data 要怎么要改啊
static struct nxp_capture_platformdata capture_plat_data[] = {
{
/* back_camera 656 interface */
//.module = 0,
.module = 1, //VIP1, hdc 20150424
.sensor = &sensor[0],
.type = NXP_CAPTURE_INF_PARALLEL,
.parallel = {
/* for 656 */
.is_mipi = false,
.external_sync = true, /* 656 interface */
.h_active = 640,
.h_frontporch = 7,
.h_syncwidth = 1,
.h_backporch = 10,
.v_active = 480,
.v_frontporch = 0,
.v_syncwidth = 2,
.v_backporch = 3,
.clock_invert = true,
.port = 0,
.data_order = NXP_VIN_CBY0CRY1,//NXP_VIN_Y0CBY1CR,
.interlace = false,
.clk_rate = 24000000,
.late_power_down = true,
.power_enable = back_camera_power_enable,
.power_state_changed = back_camera_power_state_changed,
.set_clock = camera_common_set_clock,
.setup_io = camera_common_vin_setup_io,
},
.deci = {
.start_delay_ms = 0,
.stop_delay_ms = 0,
},
},
#if 0
{
/* front_camera 601 interface */
//.module = 0,
.module = 1, //VIP1, hdc 20150424
.sensor = &sensor[1],
.type = NXP_CAPTURE_INF_PARALLEL,
.parallel = {
.is_mipi = false,
.external_sync = true,
.h_active = 640,
.h_frontporch = 0,
.h_syncwidth = 0,
.h_backporch = 2,
.v_active = 480,
.v_frontporch = 0,
.v_syncwidth = 0,
.v_backporch = 2,
.clock_invert = false,
.port = 0,
.data_order = NXP_VIN_CBY0CRY1,
.interlace = false,
.clk_rate = 24000000,
.late_power_down = true,
.power_enable = front_camera_power_enable,
.power_state_changed = front_camera_power_state_changed,
.set_clock = camera_common_set_clock,
.setup_io = camera_common_vin_setup_io,
},
#else
{
/* front_camera 601 interface */
.module = 1,
.sensor = &sensor[1],
.type = NXP_CAPTURE_INF_PARALLEL,
.parallel = {
.is_mipi = false,
.external_sync = true, //ok for s5k4ec;hdc 20150722;
//.h_active = 640,
.h_active = 1280,
.h_frontporch = 0, //ok for s5k4ec;hdc 20150722;
.h_syncwidth = 0,
.h_backporch = 2,
//.v_active = 480,
.v_active = 960,
.v_frontporch = 0,
.v_syncwidth = 0,
.v_backporch = 2,
.clock_invert = false, //ok for s5k4ec;hdc 20150722;
.port = 0,
//.data_order = NXP_VIN_CBY0CRY1, //ok for s5k4ec,but not good;hdc 20150722;
.data_order = NXP_VIN_CRY1CBY0, //ok for s5k4ec,normal good;hdc 20150722;
.interlace = false, //ok for s5k4ec;hdc 20150722;
.clk_rate = 24000000,
.late_power_down = true, //ok for s5k4ec;hdc 20150722;
.power_enable = front_camera_power_enable,
.power_state_changed = front_camera_power_state_changed,
.set_clock = camera_common_set_clock,
.setup_io = camera_common_vin_setup_io,
},
#endif
.deci = {
.start_delay_ms = 0,
.stop_delay_ms = 0,
},
},
{ 0, NULL, 0, },
};
|
-
H.png
(139.94 KB, 下载次数: 425)
行同步
-
V.png
(195.08 KB, 下载次数: 418)
|