All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hebbar <gururajakr@sanyo.co.in>
To: linux-kernel@vger.kernel.org
Subject: need help to enable ARM AMBA PL031 RTC
Date: Tue, 15 Jul 2008 03:43:14 -0700 (PDT)	[thread overview]
Message-ID: <18462244.post@talk.nabble.com> (raw)


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.


             reply	other threads:[~2008-07-15 10:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-15 10:43 Hebbar [this message]
2008-07-15 10:47 ` need help to enable ARM AMBA PL031 RTC Ben Dooks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18462244.post@talk.nabble.com \
    --to=gururajakr@sanyo.co.in \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.