2440+2.6.33 触摸屏驱动 移植(十一)

本来 这一篇章应该在 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  最后一行
添加
  1. config TOUCHSCREEN_YWX2440
  2.     tristate "ywx 2440 TouchScreen input driver"
  3.     depends on ARCH_S3C2410 && INPUT && INPUT_TOUCHSCREEN
  4.     help
  5.      Say Y here if you have the ywx2440 TouchScreen.

  6.      If unsure, say N.

  7.      To compile this driver as a module, choose M here: the
  8.      module will be called ywx2440_ts.

  9. endif
4.修改 /touchscreen/Makefile
  1. 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 driver


6.启动时,打印 触摸屏驱动 移植好
  1. USB Serial support registered for pl2303
  2. usbcore: registered new interface driver pl2303
  3. pl2303: Prolific PL2303 USB to serial adaptor driver
  4. mice: PS/2 mouse device common for all mice

  5. TQ2440 TouchScreen successfully loaded            ###这里打印输出
  6. input: TQ2440 TouchScreen as /class/input/input0

  7. S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
  8. s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled









 
阅读(218) | 评论(0) | 转发(0) |
评论热议
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值