MT6763 Sensor移植指南資料
Sensor Porting Guide --- MT6763
將大檔案分割成多個檔案
檔案說明
驅動程式結構
Imgsensor Drv
• User space drive
Adapter layer
• A adapter layer for Linux character device driver and native sensor driver
Sensor power control
• Control the sensor power on/off
感測器驅動器PORTI
Config Files
• /device/mediatek /${project}/
• /kernel-4.4/arch/arm64/configs/
Kernel Driver
• /kernel-4.4/drivers/misc/mediatek/imgsensor/src/ /${platform}/
• /kernel-4.4/drivers/misc/mediatek/imgsensor/src/
• /kernel-4.4/drivers/misc/mediatek/imgsensor/
• kernel-4.4/drivers/misc/mediatek/imgsensor/src/mt6763/
Hal Driver
• /vendor/mediatek/proprietary/custom/ ${platform}/hal/imgsensor/
• /vendor/mediatek/proprietary/custom/${platform}/hal/
如何增加一種新的感測器
Step1
/device/mediatek/ ${project} /ProjectConfig.mk
/kernel-4.4/arch/arm64/configs/ ${project}_debug_defconfig
/kernel-4.4/arch/arm64/configs/${project}_defconfig
1.1ProjectConfig.mk 如下修改
(a) 修改imgsensor相關
eg:main(後攝) xxx_mipi_raw, sub (前攝)xxxx_mipi_raw, main2(stereo)xxxx_mipi_raw)
• CUSTOM_HAL_IMGSENSOR = xxxx_mipi_raw
• CUSTOM_KERNEL_IMGSENSOR = xxxx_mipi_raw
• CUSTOM_HAL_MAIN_IMGSENSOR = xxxx_mipi_raw
• CUSTOM_HAL_SUB_IMGSENSOR = xxxx_mipi_raw
• CUSTOM_KERNEL_MAIN_IMGSENSOR = xxxx_mipi_raw
• CUSTOM_KERNEL_SUB_IMGSENSOR = xxxx_mipi_raw
• CUSTOM_HAL_MAIN2_IMGSENSOR = xxxx_mipi_raw
• CUSTOM_KERNEL_MAIN2_IMGSENSOR = xxxx_mipi_raw
··························