All of lore.kernel.org
 help / color / mirror / Atom feed
* need help to enable ARM AMBA PL031 RTC
@ 2008-07-15 10:43 Hebbar
  2008-07-15 10:47 ` Ben Dooks
  0 siblings, 1 reply; 2+ messages in thread
From: Hebbar @ 2008-07-15 10:43 UTC (permalink / raw)
  To: linux-kernel


I all,

I am working on customized arm versatile board and i am trying to use ARM
AMBA PL031 RTC.

 i enabled CONFIG_RTC_DRV_PL031=y

But the date never changes or updates. 

/ # cat /sys/class/rtc/rtc0/time
00:00:00

When i went through the Ref Manual of ARM AMBA PL031 RTC i found that we
need to enable or set high to RTC START bit (bit 0) in RTC Control Register
( 0x0C ).

but in  rtc-pl031.c, RTC_START is no where set in RTC CONTROL Register.

I think we need to enable it in rtc_probe func after rtc_device_register
returns success.

#define RTC_CR_MIE	(1 << 0)

__raw_writel(RTC_CR_MIE, ldata->base + RTC_CR);

Kindly Comment.

Regards
Gururaja


-- 
View this message in context: http://www.nabble.com/need-help-to-enable-ARM-AMBA-PL031-RTC-tp18462244p18462244.html
Sent from the linux-kernel mailing list archive at Nabble.com.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-15 10:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15 10:43 need help to enable ARM AMBA PL031 RTC Hebbar
2008-07-15 10:47 ` Ben Dooks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.