转自: https://blog.csdn.net/xiaotao1513/article/details/96330242

ELAN 6730 高通820 8996平台Porting手册

1.Touch porting

创建Touch驱动文件夹

cd  android/kernel/msm-3.18/drivers/input/touchscreen/
mkdir Damon_elan_tddi

cd Damon_elan_tddi

移入Touch驱动.c和.h档案,编写Makefile和Kconfig

vim Kconfig

vim Makefile

cd android/kernel/msm-3.18/drivers/input/touchscreen/
vim Makefile

vim Kconfig

vim arch/arm64/configs/msm_defconfig

vim arch/arm64/boot/dts/qcom/apq8096-dragonboard.dtsi

dts中的compatible要和驱动中的compatible匹配

2. LCD Kernel Porting

在高通文档DSI Timing Parameters.xls中填写Porch值等设定,生成Timing

把如下Timing填写到panel_damon_boe_6730.xml中

利用perl parser.pl xxxx.xml panel生成.hlk用,.dtsikernel.dtsi放到kernel/arch/arm64/boot/dts/qcom/

vim arch/arm64/boot/dts/qcom/apq8096-dragonboard.dtsi

把DSI_PHY2.0.0中的Timing设置,放到dtsi中

vim arch/arm64/boot/dts/qcom/msm8996-mdss-panels.dtsi

vim arch/arm64/boot/dts/qcom/msm8996-sde-display.dtsi

vim kernel/drivers/video/msm/mdss/mdss_dsi.c

编译烧录,理论上Kernel就可以正常显示

标签: aosp

添加新评论