mxc_v4l2 : add support for v4l2 advanced debug

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mxc_v4l2 : add support for v4l2 advanced debug

1,583 次查看
anjojohn
Contributor IV

Hi All,

I am integrating ov5640 mipi camera with imx6 Dualite. For debug (ov5640 register read and write) need to add support for v4l2 advanced debug in driver (Need to read and write register from user-space with v4l2-dbg). Few examples i saw were done with v4l2-subdev core options

static const struct v4l2_subdev_core_ops xxxx_core_ops = {
    .log_status = xxxx_log_status,
    .s_std = xxxx_s_std,
    .reset = xxxx_reset,
    .g_chip_ident = xxxx_g_chip_ident,
#ifdef CONFIG_VIDEO_ADV_DEBUG
    .g_register = xxxx_g_register,
    .s_register = xxxx_s_register,
#endif
};

How to add this to OV5640 driver for debug support

0 项奖励
2 回复数

1,016 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi anjo

You might have to look the kernel config CONFIG_VIDEO_ADV_DEBUG and VIDEO_ADV_DEBUG

Also if you are with Yocto, utilities on v4l-utils and v4l2-dbg: allows access to DBG_G_CHIP_INFO, DBG_G/S_REGISTER

Core debugging: 'echo 1 >/sys/class/video4linux/video0/debug'.

 1: show ioctl name

 2: show arguments as well

 

Hope this helps

0 项奖励

1,016 次查看
anjojohn
Contributor IV

Hi,

Is there any examples for adding s_register and g_register for v4l2debug in mxc-v4l2 or ov5640_mipi driver? Any examples with reference of imx6  will be helpful

0 项奖励