首页 > 其他分享 >camera

camera

时间:2022-11-07 22:24:48浏览次数:43  
标签:62S AGN M119 H231UO imgsensor camera mediatek

camera  调用流程   imgsensor_probe 注册操作文件结构设备---》获取设备-》获取时钟-》获取上电--->gpio设置引脚 -----》i2c通信 imgsensor_open --->imgsensor_clk_enable_all_cg    原子操作 open 0  open 1  probe(imgsensor_driver_register--->   imgsensor_ioctl )                  sensor_idx 0, power 1 curr_sensor_name imx258_mipi_raw //0后摄 1前摄      camera   GPIO配置 打开 mediatek\dct\DrvGen.exe  选择 mediatek\custom\xiaoxi\kernel\dct\dct\codegen.dws 配置文件 设置前后摄像头的CMRST和CMPDN引脚,这是跟上电时序有关;     上电时序  reset Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\mt6765\camera_project\AGN_H231UO_M119_62S\camera_hw\imgsensor_cfg_table.c   配置CONFIG_CUSTOM_KERNEL_IMGSENSOR Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\arch\arm64\configs\AGN_H231UO_M119_62S_defconfig   CONFIG_IMGSENSOR_MAIN="s5k3l6_mipi_raw s5k3l8_mipi_raw" CONFIG_IMGSENSOR_SUB="gc2375_mipi_raw gc02m2_mipi_raw" 兼容   复制相关camera Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\common\v1\imgsensor_sensor_list.c 头文件添加相关函数 Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\common\v1\imgsensor_sensor_list.h     配置与imgsensor_sensor_list.c相同,hal层调用GetSensorInitFuncList Z:\AGN_H231UO_M119_62S\alps\vendor\mediatek\proprietary\custom\mt6765\hal\imgsensor_src\sensorlist.cpp     上电 Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\common\v1\imgsensor_hw.c   底层驱动文件 Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\common\v1\imgsensor.c 具体ic驱动文件 Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\mt6765\camera_project\AGN_H231UO_M119_62S\ov8856_mipi_raw\ov8856mipiraw_Sensor.c         i2c通信与上电IMGSENSOR_I2C_DRV_NAME_0 id 进行匹配   Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\common\v1\imgsensor_i2c.c Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\mt6765\camera_project\AGN_H231UO_M119_62S\camera_hw\imgsensor_cfg_table.h   dts相关 Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\arch\arm64\boot\dts\mediatek\AGN_H231UO_M119_62S\cust_mt6765_camera.dtsi &kd_camera_hw1 Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\arch\arm64\boot\dts\mediatek\AGN_H231UO_M119_62S\mt6765.dts     compatible = "mediatek,camera_hw";   hal层目录 Z:\AGN_H231UO_M119_62S\alps\vendor\mediatek\proprietary\custom\mt6765\hal\imgsensor\ver1 kernel层目录 Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\common\v1 放入项目中的目录 Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\mt6765\camera_project\AGN_H231UO_M119_62S   Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\imgsensor\src\Kconfig   hal层调用  getNumberOfDevices() Z:\AGN_H231UO_M119_62S\alps\vendor\mediatek\proprietary\hardware\mtkcam-android\main\hal\entry\legacy\module\LegacyCameraModule.cpp   镜像翻转 \\172.18.4.14\data4\H231_M119\H2110XO_220324\mtk_r0.mp1_idata_common\kernel-4.19\drivers\misc\mediatek\imgsensor\src\mt6765\camera_project\AGN_H2110XO_M127_R\gc5034_mipi_raw\gc5034mipi_Sensor.h     Z:\AGN_H231UO_M119_62S\alps\kernel-4.19\drivers\misc\mediatek\lens对焦文件       log 查看imgsensor是否到达   cd /sys/bus/i2c/devices cd /sys/bus/i2c/drivers

标签:62S,AGN,M119,H231UO,imgsensor,camera,mediatek
From: https://www.cnblogs.com/breadmachine/p/16867685.html

相关文章