|
16.1 Patch touch screen driver
In linux 2.6.25.8, there is no touch screen driver for S3C2440. So we need to patch the driver first. First, copy the driver source code we provided £¨name£ºEmbedSky_ts.c£©to kernel directory “drivers/input/touchscreen/”, and copy header file£¨name£ºts.h£©to kernel directory “include/asm-arm/arch-s3c2410/”. Add “clock.h” to kernel directory “include/asm-arm/hardware/”.
Modify “Kconfig”and“Makefile”under “drivers/input/touchscreen/”to support the newly added files.
Modify file “Kconfig” under “drivers/input/touchscreen/”:
config TOUCHSCREEN_USB_GOTOP default y bool "GoTop Super_Q2/GogoPen/PenPower tablet device support" if EMBEDDED depends on TOUCHSCREEN_USB_COMPOSITE
config EmbedSky_TOUCHSCREEN tristate "EmbedSky touchscreen" depends on ARCH_S3C2410 && INPUT && INPUT_TOUCHSCREEN select SERIO help To compile this driver as a module, choose M here: the module will be called EmbedSky_ts.ko. For full article: http://www.cutedigi.com/pub/Linux/LinuxPort/TUT16.pdf
|