一般修改以下几个:
tpd-resolution = <768 1024>; tp范围,依据屏分辨率而定我们用的屏是7.85寸768*1024的故参数修改为 <768 1024>
tpd-max-touch-num = <5>; 表示最多支持5点触摸
pinctrl 以CTP_pins_eint_output0 CTP_pins_eint_output1 为例:
dts里边定义:
CTP_pins_eint_output0: eintoutput0 {
pins_cmd_dat {
pins = <MT8163_PIN_35_KPROW2__FUNC_GPIO35>;
slew-rate = <1>;
output-low;
};
};
CTP_pins_eint_output1: eintoutput1 {
pins_cmd_dat {
pins = <MT8163_PIN_35_KPROW2__FUNC_GPIO35>;
slew-rate = <1>;
output-high;
};
};
继续查找:
MT8163_PIN_35_KPROW2__FUNC_GPIO35
在mt8163-pinfunc.h中(此文件就是全GPIO口全功能定义的函数):
254 #define MT8163_PIN_35_KPROW2__FUNC_GPIO35 (MTK_PIN_NO(35) | 0)
255 #define MT8163_PIN_35_KPROW2__FUNC_KPROW2 (MTK_PIN_NO(35) | 1)
256 #define MT8163_PIN_35_KPROW2__FUNC_USB_DRVVBUS (MTK_PIN_NO(35) | 2)
257 #define MT8163_PIN_35_KPROW2__FUNC_EXT_FRAME_SYNC (MTK_PIN_NO(35) | 3)
258 #define MT8163_PIN_35_KPROW2__FUNC_CONN_TEST_CK (MTK_PIN_NO(35) | 4)
259 #define MT8163_PIN_35_KPROW2__FUNC_DBG_MON_B_6 (MTK_PIN_NO(35) | 7)
(2)defconfig修改
kernel-3.18/arch/arm64/configs/hiteq8163_tb_n_debug_defconfig (编译版本eng userdebug生效)
kernel-3.18/arch/arm64/configs/hiteq8163_tb_n_defconfig(编译版本user生效)
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/shouji/article-51262-4.html
明白
而俄是拳头外交