九鼎创展论坛

标题: 4418 OV5640移植问题 [打印本页]

作者: nipingbo    时间: 2015-11-19 09:45
标题: 4418 OV5640移植问题
本帖最后由 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, 下载次数: 4088)

行同步

行同步

V.png (195.08 KB, 下载次数: 4487)

V.png

作者: armeasy    时间: 2015-11-20 14:57
加油调,我们也要用OV5640,在4418上
作者: nipingbo    时间: 2015-11-23 09:04
终于调试OK了
作者: Linux-Ubuntu    时间: 2015-11-25 17:42
楼主,你的问题出在哪,我现在也遇到了,求指导。
作者: armeasy    时间: 2015-12-2 12:16
可以自动对焦么?
作者: armeasy    时间: 2015-12-2 12:16
可以自动对焦么?
作者: cory    时间: 2018-9-17 10:19
nipingbo 发表于 2015-11-23 09:04
终于调试OK了

大神,怎么解决的,正在探索




欢迎光临 九鼎创展论坛 (http://bbs.9tripod.com/) Powered by Discuz! X3.2