From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from jupiter.ctag.com (smtp.ctag.com [193.144.40.36]) by ozlabs.org (Postfix) with ESMTP id 02D07B7D24 for ; Wed, 14 Apr 2010 17:40:05 +1000 (EST) Received: from [193.144.40.38] (helo=INN0072) by jupiter.ctag.com with esmtpa (Exim 4.63) (envelope-from ) id 1O1xCO-00063J-58 for linuxppc-dev@lists.ozlabs.org; Wed, 14 Apr 2010 09:39:58 +0200 From: =?iso-8859-1?Q?CTAG_/_Mois=E9s_Dom=EDnguez?= To: Date: Wed, 14 Apr 2010 09:39:47 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003F_01CADBB6.6C4D3350" Subject: mpc5121e-Real Time Clock List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_NextPart_000_003F_01CADBB6.6C4D3350 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 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). =20 According MPC5121e errdata of freescale doc., there=92s an issue = involving RTC: =20 Description: =93The TAMP bit in the SRTC does not reliably provide an indication that = the RTC power supply or the RTC oscillator has been interrupted=94 =20 Workaround: =93In your system=92s design, do not rely on the tamper indication to be reliable=94 =20 =20 Looking in rtc-mpc5121.c code I didn=92t 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. =20 =20 Regards, Mois=E9s. ------=_NextPart_000_003F_01CADBB6.6C4D3350 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi,

 

I am trying =A0to 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

oscillat= or has been interrupted”

 

Workaround:<= /p>

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

 

=A0

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, =A0Mois=E9s.

------=_NextPart_000_003F_01CADBB6.6C4D3350--