本来 这一篇章应该在 QT移植之前,但是没有写,现在补上,触摸屏驱动移植
没有仔细研究 触摸屏AD 哪些东西,只是按照手册,使用了tq写好的ADC 驱动
参考:qt 09 移植手册
1.复制 tq-2.6.30.4/drivers/input/touchsreen/tq2440_ts.c 到自己内核
2.6.33/drivers/input/touchsreen/ywx2440_ts.c
2.修改 ywx2440_ts.c 在 第41行
//extern struct semaphore ADC_LOCK; 修改为下面的
DECLARE_MUTEX(ADC);
3.修改 /touchscreen/Kconfig 最后一行
添加
- config TOUCHSCREEN_YWX2440
-
tristate "ywx 2440 TouchScreen input driver"
-
depends on ARCH_S3C2410 && INPUT && INPUT_TOUCHSCREEN
-
help
-
Say Y here if you have the ywx2440 TouchScreen.
-
-
If unsure, say N.
-
-
To compile this driver as a module, choose M here: the
-
module will be called ywx2440_ts.
-
-
endif
4.修改 /touchscreen/Makefile
- obj-$(CONFIG_TOUCHSCREEN_YWX2440) +=ywx2440_ts.o
5.配置内核
Device driver ->
input device support->
(320) Horizontal screen resolution
(240) Vertical screen resolution
(*) Event interface
[*] Touchscreens ->
<*>
ywx 2440 TouchScreen input driver6.启动时,打印 触摸屏驱动 移植好
- USB Serial support registered for pl2303
-
usbcore: registered new interface driver pl2303
-
pl2303: Prolific PL2303 USB to serial adaptor driver
-
mice: PS/2 mouse device common for all mice
-
TQ2440 TouchScreen successfully loaded ###这里打印输出
-
input: TQ2440 TouchScreen as /class/input/input0
-
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
-
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
阅读(1747) | 评论(0) | 转发(1) |