]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP Add RTC support to the (new style) Menelaus driver.
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 13 Jun 2007 14:16:29 +0000 (19:46 +0530)
committerTony Lindgren <tony@atomide.com>
Wed, 13 Jun 2007 13:25:47 +0000 (06:25 -0700)
commitcec447a83475accfe72df6f68e4af95df41251b5
tree8c097f85a0691c0f857b1c191319f40127a61576
parentf69495a0cafdd4e30b763e61339f8a4df7148e8d
ARM: OMAP Add RTC support to the (new style) Menelaus driver.

This involved several bugfixes and cleanups to the IRQ handling logic.
Code for the second register bank never worked, and even clobbered
non-RTC registers; and the handler enabled IRQs for interrupts that
should have stayed masked...

Passes 'rtctest' on H4, other than lack of "periodic" (1/N second) IRQs.
System wakeup alarms (from suspend-to-RAM) work too.

The battery keeps the RTC active over power off, so once you set clock
(rdate/ntpdate/etc, then "hwclock -w") then RTC_HCTOSYS at boot time
will behave as expected.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/menelaus.c
drivers/rtc/Kconfig