QCOM chi-camera bring up

在QCOM SDM670/845等平台,存在一种chi-cdk类型的camera接口层

CHI功能的官方解释:
CHI allows customers to have the choice of enhancing their camera product by adding external components without changing the Qualcomm code.

Following are external components supported by CHI:
−Custom Node
−Custom Algorithm
−CHI override ->for adding custom use-cases
−Topology

 

CHI使得用户可以在不更改高通代码的情况下,通过添加外围元件,来增强camera
支持的外围元件:
−Custom Node
−Custom Algorithm 算法
−CHI override ->for adding custom use-cases
−Topology  拓扑

这个代码架构于普通架构完全不同,整理对应的camera bring up资料

文件修改:
The files at the following locations are modified during build compilation.

Sensor driver XML files are at
chi-cdk/vendor/sensor/default//
Module configuration files
chi-cdk/vendor/module/_module.xml

Kernel dts files are at
kernel/msm-4.9/arch/arm64/boot/dts/qcom/-camera-sensor-.dtsi

Submodule driver XML files are at
chi-cdk/vendor/sensor/default//< sub-module _name_sub-module>.xml
Example: chi-cdk/vendor/sensor/default/actuator/_actuator.xml

The driver binary in the device vendor makefile to be included in the build is at
vendor/qcom/proprietary/common/config/device-vendor.mk
Example: MM_CAMERA += com.qti.sensormodule..bin

chi-cdk/vendor/module/_module.xml文件功能是配置module的基础信息,功能雨vendor/qcom/proprietory/mm-camera/mm-camera2/media-controller/modules/sensors/configs/xxx_camera.xml类似,但是是每个module独立成一个xml文件
例如:
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="..\..\cdk\sensor\camxmoduleconfig.xsd">
 
 
   
      0            //camera id
      XXXX        //module name
      xxxx        //sensor name
      xxxxx    //acturator name
      xxxxxx
      xxxxx    //eeprom name
      xxxxx        //flash name
      xxxxx    //chromatix
      REAR
     
          0x3210
          0
     

     
        4.288
        1.8
        0.1
        3.496
        65.7
        51.7
        360
        360
        360
     

      imx363_pdaf
   

 


具体的submodule目录则在
chi-cdk/vendor//default/< sub-module _name_sub-module>.xml
例如sensor的xml文件:
xml文件中配置各个submodule的对应信息(即驱动文件文件)。功能类似于vendor/qcom/proprietory/mm-camera/mm-camera2/media-controller/modules/sensors/sensor/libs/xxx/xxx.h

sensor xml文件中包含多个模块:
slaveinfo 包含用于probe的sensor 信息

regAddrInfo

resolutionInfo

exposureControlInfo

streamOnSettings

groupHoldOnSettings

initSettings等

具体对应配置可以参考高通官方文档 80-P9301-97 C Camera Sensor Driver Bringup Guide

 

你可能感兴趣的:(android_camera)