1. 程式人生 > >IMX6q下gt9xx TP簡易移植

IMX6q下gt9xx TP簡易移植

複製驅動到 driver/input/touchscreen 下 修改 Kconfig 和 Makefiel Kconfig: # add gt9xx config TOUCHSCREEN_GT9xx tristate "GT9xx" depends on I2C help Say y here to support the touchscreen found on gt9xx_ts Makefile: obj-$(CONFIG_TOUCHSCREEN_GT9xx) += gt9xx.o 新增配置資訊到 arch/arm/conofigs/imx6_defconfig imx6_defconfig: CONFIG_TOUCHSCREEN_GT9xx=y 修改menuconfig Device Drivers --->
Input device support ---> [*] Touchscreens ---> <*> GT9xx 新增到板級檔案: 注:配置資訊都新增好,而且編譯通過,但是i2c檢測不到驅動的掛載情況,原因是Makefile中的TOUCHSCREEN_GT9xx和Kconfig中的CONFIG_TOUCHSCREEN_GT9XX名字不一致造成,使得驅動不能編譯生產.o檔案。