移植I2C-EEPROM驱动和看门狗驱动

来源:互联网 发布:android app源码 编辑:程序博客网 时间:2024/06/01 21:40

Linux-2.6.32S3C2440I2C接口提供了完善的驱动,因此我们只需在内核中配置一下即可使用。

其驱动代码在drivers/i2c/busses/i2c-s3c2410.c

提示:其实我们在制作内核是cp smdk2440_efconfig时已经配置好了I2C驱动

Device drivers-- >

       <*>I2C support-- >

              I2C Hardware Bus support-- >

                     <*>S3C2410 I2C Driver

                     <*>Simtec Generic I2C interface

 

 

 

看门狗驱动和I2C驱动类似,在配置内核时已经配置完成,

其驱动代码在drivers/watchdog/s3c2410_wdt.c

Device Drivers-- >

       [*]Watchdog Timer Support-- >

              <*>S3C2410 Watchdog