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-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by ozlabs.org (Postfix) with ESMTP id C54C8B7D29 for ; Thu, 15 Apr 2010 05:24:06 +1000 (EST) To: =?iso-8859-1?Q?CTAG_/_Mois=E9s_Dom=EDnguez?= From: Wolfgang Denk Subject: Re: mpc5121e-Real Time Clock MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 In-reply-to: References: Date: Wed, 14 Apr 2010 21:24:02 +0200 Message-Id: <20100414192402.63B68EEE8D8@gemini.denx.de> Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Dear =?iso-8859-1?Q?CTAG_/_Mois=E9s_Dom=EDnguez?=, In message 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 -- 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: wd@denx.de To the systems programmer, users and applications serve only to provide a test load.