need help to enable ARM AMBA PL031 RTC
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
Signature · 2 lines
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.
Quoted 5 lines · Hebbar
I all,
I am working on customized arm versatile board and i am trying to use ARM AMBA PL031 RTC.
[email protected] is the right place to discuss this, although I belive it is moderated for non-subscribers.
Quoted 35 lines
i enabled
CONFIG_RTC_DRV_PL031=yBut the date never changes or updates.
/ # cat
/sys/class/rtc/rtc0/time
00:00:00When 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_STARTis no where set in RTC CONTROL Register.I think we need to enable it in
rtc_probefunc afterrtc_device_registerreturns success.#define
RTC_CR_MIE(1 << 0)
__raw_writel(RTC_CR_MIE, ldata->base + RTC_CR);Kindly Comment.
Regards
GururajaSignature · 8 lines
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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Signature · 3 lines
Ben ([email protected], http://www.fluff.org/) 'a smiley only costs 4 bytes'