[beagleboard] Re: RTC base address

Hi,

i did following commands at u-boot prompt.
# imw 0x4A 0x0d 0x00 – Stop RTC
# imw 0x4A 0x00 0x36 – Sec
# imw 0x4A 0x01 0x54 – min
# imw 0x4A 0x02 0x90
# imw 0x4A 0x03 0x05
# imw 0x4A 0x04 0x09
# imw 0x4A 0x05 0x97
# imw 0x4A 0x0D 0x01 – enable RTC

After enabling i am reading the values by giving following command

# imd 0x4A 0x00 10
But the values are not changing. i want to know is what i am doing correct? did i missed something.

–Sanjeev

— On Tue, 5/5/09, Preston Wilson rpwilsonjr@gmail.com wrote:


> From: Preston Wilson rpwilsonjr@gmail.com
> Subject: [beagleboard] Re: RTC base address
> To: “Beagle Board” beagleboard@googlegroups.com
> Date: Tuesday, 5 May, 2009, 6:51 PM
>
> On May 5, 9:03 am, Koen Kooi k...@beagleboard.org wrote:
> > Op 5 mei 2009 om 14:59 heeft “Sean D’Epagnier”
> > geckosena...@gmail.com het volgende geschreven:<br>> >
> >
> >
> > > I just need to store the time
> > > at shutdown and restore it at boot
> >
> > Angstrom does that by default
>
> And if you are not running Angstrom…
>
> Create a shutdown script that does this
>
> date +%m%d%H%M%Y > /etc/savedate
>
> And in a startup script that does this
>
> date cat /etc/savedate
>
> The above is not tested. man date and man strftime will help in
> correcting any problems.
>
> -Preston

|

i did following commands at u-boot prompt.
# imw 0x4A 0x0d 0x00 -- Stop RTC
# imw 0x4A 0x00 0x36 -- Sec
# imw 0x4A 0x01 0x54 -- min
# imw 0x4A 0x02 0x90
# imw 0x4A 0x03 0x05
# imw 0x4A 0x04 0x09
# imw 0x4A 0x05 0x97
# imw 0x4A 0x0D 0x01 -- enable RTC

After enabling i am reading the values by giving following command

# imd 0x4A 0x00 10
But the values are not changing.
i want to know is what i am doing correct? did i missed something.

Did you check the information in the TPS65950 TRM table 3.21 with respect to
the mSecure line?

Which board revision do you have B or C? You can control the state of the
mSecure line on Rev C, but not on Rev B AFAIR. I can't remember if it's
supposed to be high or low in order to alter the RTC...

Best regards - Good luck
  Søren