1.简介
本章主要讲述MT8168平台Android P版本下Camera 驱动移植方法。以gc2375和 sp2509为案例。
2.Camera驱动移植指南
2.1 内核部分移植
2.1.1 Config配置
arch/arm/configs/<project>_defconfig
CONFIG_CUSTOM_KERNEL_IMGSENSOR="gc2375_mipi_raw sp2509_mipi_raw"
2.1.2 Dts 配置
arch/arm/boot/dts/<project>.dts
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
clock-frequency = <100000>;
status = "okay";
kd_camera_hw1@10 {
compatible = "mediatek,camera_sub";
reg = <0x10>;
status = "okay";
};
};
&i2c3 {
pinctrl-names = "default";
pinctrl-0 = <