你好,我的操作系统是linux2.6.33-rc4 ,cpu为AM1808,请问怎样加入ds1307实时时钟芯片的驱动,使我的系统可以使用外部rtc?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你好,我的操作系统是linux2.6.33-rc4 ,cpu为AM1808,请问怎样加入ds1307实时时钟芯片的驱动,使我的系统可以使用外部rtc?
你好:
驱动支持我已经加上了
Device Drivers --->
<*> Real Time Clock --->
<*> Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025
但是在板级初始化上面,我的初始化设备信息是写成这样
static struct i2c_gpio_platform_data da850_ds1307_i2c_pdata = {
.sda_pin = GPIO_TO_PIN(1, 4),
.scl_pin = GPIO_TO_PIN(1, 5),
.udelay = 2, /* 250 KHz */
};
static struct platform_device da850_rtc_i2c = {
.name = "rtc-ds1307",
.id = 1,
.dev = {
.platform_data = &da850_ds1307_i2c_pdata,
},
};
在设备初始化的主程序加上了
platform_device_register(&da850_rtc_i2c );
后并不能实现初始化ds1307的功能,请问是不是我的初始化程序有问题,要怎么修改,谢谢!!