10. RTC时钟的移植
(1)arch/arm/mach-s32440/mach-smdk2440.c
static struct platform_device *smdk2440_devices[] __initdata = {
&s3c_device_usb,
&s3c_device_lcd,
&s3c_device_wdt,
&s3c_device_i2c0,
&s3c_device_iis,
#ifdef CONFIG_DM9000
&s3c_device_dm9000,
#endif
&s3c_device_sdi,
&s3c24xx_uda134x,
&s3c_device_rtc, //Added for RTC
};
(2)配置内核如下
.Device Drivers --->
<*> Real Time Clock --->
[*] Set system time from RTC on startup and resume
(rtc0) RTC used to set the system time
[*] /sys/class/rtc/rtcN (sysfs)
[*] /proc/driver/rtc (procfs for rtc0)
[*] /dev/rtcN (character devices)
<*> Samsung S3C series SoC RTC
date
date -s 2010.10.07-hh:mm:ss
hwclock -w
hwclock -s
11. 触摸屏驱动移植
(1) 复制s3c2440_ts.c到drivers/input/touchscreen
(2) 修改 Kconfig,增加如下配置
config TOUCHSCREEN_S3C2440
tristate "Samsung S3C2440 touchscreen input driver"
depends on ARCH_S3C2410 && INPUT && INPUT_TOUCHSCREEN
help
Say Y here if you have the s3c2410 touchscreen.
If unsure, say N.
To compile this driver as a module, choose M here: the
module will be called s3c2440_ts.
(3) 修改Makefile,增加如下
obj-$(CONFIG_TOUCHSCREEN_S3C2440) += s3c2440_ts.o
(4) 配置选项
