MTK_6765_OTP架构分析

MTK 6765 OTP架构:

Cam_cal_drv.cpp

(e:\mtk_290_code\vendor\mediatek\proprietary\hardware\mtkcam\drv\src\mem\1.0)

m32CamCalDataValidation= GetCameraCalData(i4CurrSensorId,(MUINT32*)pCamcalData);//cur

Camera_custom_msdk.cpp

 

(e:\mtk_290_code\vendor\mediatek\proprietary\custom\mt6765\hal\camera_3a)      20963    2019/11/6

result = CAM_CALGetCalData(pGetSensorCalData);//cur

Camera_calibration_cam_cal.cpp

(e:\mtk_290_code\vendor\mediatek\proprietary\custom\mt6765\hal\imgsensor_src)       106659  2019/10/13

(CalLayoutTbl[LayoutType].CalItemTbl[lsCommand].GetCalDataProcess != NULL))

 

 

const CALIBRATION_LAYOUT_STRUCT CalLayoutTbl[MAX_CALIBRATION_LAYOUT_NUM]=

{

    {// GC8034 rear

        0x00000001, 0x00000028, CAM_CAL_SINGLE_OTP_DATA,

        {

            {0x00000001, 0x00000000, 0x00000000, DoCamCalModuleVersion}, //CAMERA_CAM_CAL_DATA_MODULE_VERSION

            {0x00000000, 0x00000005, 0x00000002, DoCamCalPartNumber}, //CAMERA_CAM_CAL_DATA_PART_NUMBER

            {0x00000001, 0x00000043, 0x3B6-0x42+1, DoCamCalSingleLsc_M290}, //CAMERA_CAM_CAL_DATA_SHADING_TABLE

            {0x00000001, 0x00000031, 0x0000000E, DoCamCal2AGain_m290}, //CAMERA_CAM_CAL_DATA_3A_GAIN

            {0x00000000, 0x00000763, 0x00000800, DoCamCalPDAF},

            {0x00000000, 0x00000FAE, 0x00000550, DoCamCalStereoData}  //CAMERA_CAM_CAL_DATA_STEREO_DATA

        }

setScenario()

MINT32

ImgSensorDrv::setScenario(IMGSENSOR_SENSOR_IDX sensorIdx, SENSOR_DRIVER_SCENARIO_T scenarioconf)//cur call from HalSensor.control.cpp

你可能感兴趣的:(MTK_6765_OTP架构分析)