Hi All,
I am trying to use DS1307 RTC in my At91sam9260 running on 2.6.30.4 kernel. I can not make it working.
I have enabled the following options in the menuconfig.
Device Drivers->I2C support
-
I2C device interface
-
I2C Hardware Bus support->GPIO-based bitbanging I2C
DeviceDrivers->Real Time Clock
1)(rtc1) RTC used to set the system time
- Dallas/Maxim DS1307/37/38/39/40, ST M41T00, EPSON RX-8025
I also see the I2C interface initialisation with NULL argument in board-sam9-l9260.c file,
/* I2C */
at91_add_device_i2c(NULL, 0);
Do I need to pass something instead of NULL?
I am getting the following while booting.
g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
g_ether gadget: g_ether ready
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 55 (SDA) and 56 (SCL)
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc1)
Empty flash at 0x07b5d794 ends at 0x07b5d800
VFS: Mounted root (jffs2 filesystem) on device 31:1.
Freeing init memory: 108K
mdev: unknown user/group →
mdev: unknown user/group →
Setting system clock: hwclock: can’t open ‘/dev/misc/rtc’: No such file or direy
FAIL
Can anyone help me to get this RTC working?