About No gated mode and bt656 for MIPI camera

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

About No gated mode and bt656 for MIPI camera

Jump to solution
978 Views
ludovicleau-mer
Contributor III

Hi,

i continue to debug my mipi camera driver.

I have read in the application processor reference manula that the "When working with MIPI, the non-gated mode should be configured."

How i can do this exactly ?

In the mxc_v4l2_capture.c the mode IPU_CSI_CLK_MODE_NONGATED_CLK is not used.

And at this moment my camera prototype don't use BT656 mode and i configure v4l2_ifparm like this :

     p->u.bt656.clock_curr = camera_data.mclk; // must be 0 if interlaced

     pr_debug("%s() clock_curr=mclk=%d\n", __func__, camera_data.mclk);

     p->if_type = V4L2_IF_TYPE_BT656;

     p->u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT;

     p->u.bt656.clock_min = DEFAULT_XCLK_MIN;

     p->u.bt656.clock_max = DEFAULT_XCLK_MAX;

     p->u.bt656.bt_sync_correct = 1;  /* Indicate external vsync */

What is the bt656.clock_curr ?

regards

Labels (2)
0 Kudos
1 Solution
575 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi ludovic,

    p->u.bt656.clock_curr has no special meaning, just used to make a distinction between non-gated clock and gated clock.

Regards,

weidong

View solution in original post

0 Kudos
1 Reply
576 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi ludovic,

    p->u.bt656.clock_curr has no special meaning, just used to make a distinction between non-gated clock and gated clock.

Regards,

weidong

0 Kudos