Skip to contentSkip to conversation

RTC interface

lm-sensors Terence Soh 2 participants 2 messages Nov 30, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I've some questions about RTC in I2C environment and I'm using rtc8564.c.

1) Do we update the linux date and time (not the RTC) in user space or kernel space?
2) If I update in the kernel, what are the appropriate functions for it?
3) If I update it in user space, which dev do I write/read to? Apparently /dev/rtc does not exist when I try to cat it.

Thanks,
Terence.

#1 lore raw
Quoted 7 lines · On Wed, 30 Nov 2005 10:32:04 +0800 Terence Soh <[email protected]> wrote:

I've some questions about RTC in I2C environment and I'm using rtc8564.c.

1) Do we update the linux date and time (not the RTC) in user space or kernel space?
2) If I update in the kernel, what are the appropriate functions for it?
3) If I update it in user space, which dev do I write/read to? Apparently /dev/rtc does not exist when I try to cat it.

Hello,

the kernel actually lacks a good support for i2c rtcs... which platform
are you using it on?

If it's ARM based , I can give you some hints.

Signature · 6 lines
 Best regards,

 Alessandro Zummo,
  Tower Technologies - Turin, Italy

  http://www.towertech.it