VIN驱动代码简介
VIN内核驱动代码位于drivers/media/platform/starfive/v4l2_driver/目录,通过编译开关CONFIG_VIDEO_STF_VIN
控制是否编译。
VIN驱动根据media controller、v4l2、
vb2框架,完成硬件配置,帧中断处理,buffer轮转等功能。各文件的功能内容如下:
$ tree drivers/media/platform/starfive/v4l2_driver/ drivers/media/platform/starfive/v4l2_driver/ ├── imx219_mipi.c ├── ov13850_mipi.c ├── ov4689_mipi.c ├── ov5640.c ├── Readme.txt ├── sc2235.c ├── stfcamss.c ├── stfcamss.h ├── stf_common.h ├── stf_csi.c ├── stf_csi.h ├── stf_csi_hw_ops.c ├── stf_csiphy.c ├── stf_csiphy.h ├── stf_csiphy_hw_ops.c ├── stf_dmabuf.c ├── stf_dmabuf.h ├── stf_dvp.c ├── stf_dvp.h ├── stf_dvp_hw_ops.c ├── stf_event.c ├── stf_isp.c ├── stf_isp.h ├── stf_isp_hw_ops.c ├── stf_isp_ioctl.h ├── stf_video.c ├── stf_video.h ├── stf_vin.c ├── stf_vin.h └── stf_vin_hw_ops.c
注: 赛昉科技平台默认也会将sensor驱动移植到该目录,但是推荐的sensor存放目录为drivers/media/i2c。