ARM9(TQ2440开发板)触摸屏驱动移植说明
2018-01-28 本文已影响0人
AresDing
1. 触摸屏驱动的移植
在内核源码目录下 TQ2440_Kernel_2.6.30\linux-2.6.30.4\Src\drivers\input\touchscreen\ 下添加
s3c2410_ts.c TQ2440触摸屏的驱动源码文件,同时修改该目录下的Kconfig和Makefile 添加编译支持
编译内核时需要在Make Menuconfig 中勾选这一项
![](https://img.haomeiwen.com/i9933971/16308f10f8784ab6.jpg)
![](https://img.haomeiwen.com/i9933971/a6e28ed8e82a985d.png)
![](https://img.haomeiwen.com/i9933971/2a4d3010ae1376d2.png)
Kconfig 文件中添加的内容如下:
config TOUCHSCREEN_S3C2410
config TOUCHSCREEN_S3C2410
tristate "Samsung S3C2410/S3C2440 touchscreen input driver"
depends on MACH_MY2440 && INPUT && INPUT_TOUCHSCREEN
help
Say Y here if you have the s3c2410/s3c2440 touchscreen.
If unsure, say N.
To compile this driver as a module, choose M here: the
module will be called s3c2410_ts.
Makefile文件中添加的内容如下:
obj-$(CONFIG_TOUCHSCREEN_S3C2410) += s3c2410_ts.o