Skip to contentSkip to conversation

mpc5121e-Real Time Clock

DISCUSSION CTAG / Moisés Domínguez 2 participants 2 messages Apr 14, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to use internal Real Time Clock of my ads5121 board .So that I am using /dev/rtc-0 device with linux/Documentation/rtc.txt example. I can read and write time/date but I notice RTC is not being updated as if VBAT was off or there was not oscillator (I tested oscillator and VBAT).

According MPC5121e errdata of freescale doc., there’s an issue involving RTC:

Description:

“The TAMP bit in the SRTC does not reliably provide an indication that the RTC power supply or the RTC

oscillator has been interrupted”

Workaround:

“In your system’s design, do not rely on the tamper indication to be reliable”

Looking in rtc-mpc5121.c code I didn’t find anything related to Keep Alive Register (where TAMP bit is) so I would like to know where this issue is taking into account or if it is really being taking into account in the driver.

Regards, Moisés.

#1 lore raw

Dear =?iso-8859-1?Q?CTAG_/_Mois=E9s_Dom=EDnguez?=,

Quoted 5 lines · In message <E70643A89AF74DE1BCA25C3C4AE2CE29@ctag> you wrote:

Looking in rtc-mpc5121.c code I didn't find anything related to Keep Alive Register (where TAMP bit is) so I would like to know where this issue is taking into account or if it is really being taking into account in the driver.

It is not.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
To the systems programmer,  users  and  applications  serve  only  to
provide a test load.