你好,游客 登录 注册 搜索
背景:
阅读新闻

TQ2440 Linux 系统移植

[日期:2011-03-18] 来源:Linux社区  作者:IT_114 [字体:大 中 小]

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) 配置选项

linux
相关资讯       TQ2440 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款