]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
RTC: Add rtc-omap
authorDavid Brownell <david-b@pacbell.net>
Tue, 29 Aug 2006 14:33:22 +0000 (17:33 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 29 Aug 2006 14:33:22 +0000 (17:33 +0300)
commit8540e3cef26f4d14dd2fa9eb910ded301c307ada
tree8f62147fd452e3ed11dcb92a526d7d534e300d24
parent44bfc5d386251a105920119ba31c209f6c3a8616
RTC: Add rtc-omap

This creates a new RTC-framework driver for the RTC/calendar module
found in various OMAP chips, giving a more correct/standard replacement
for the older drivers/char/omap-rtc.c driver.  Differences include:

 - much smaller/simpler, because it reuses shared infrastructure
 - the RTC name will normally be "rtc0" not "rtc"
 - the /dev node has a different major and minor numbers
 - RTC_ALM_SET handled as on PCs (alarm within 24 hours)
 - RTC_WKALM_SET handled as on PCs (alarm within this century)
 - epoch not changeable (why bother)
 - rtc alarm may optionally be a system wakeup event (board-specific)

If you use udev and statically link this, some init script can just create
a symbolic link (rtc -> rtc0) so tools like "hwclock" will work as usual.
Or, updates to hwclock (and busybox) are available which teach it to use
the /dev/rtc0 path as a backup, and to support "hwclock --file=/dev/rtc0".

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
arch/arm/mach-omap1/devices.c
drivers/rtc/Kconfig
drivers/rtc/Makefile
drivers/rtc/rtc-omap.c [new file with mode: 0644]