From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Mon, 24 Oct 2011 15:48:39 +0200 Subject: [U-Boot] Accessing MC13783 RTC registers In-Reply-To: References: Message-ID: <4EA56CB7.8010302@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/24/2011 03:18 PM, Fabio Estevam wrote: > Hi, > > Running U-boot from top of tree imx git I get the following when > trying to access the MC13783 RTC registers via 'date' command: > > MX31PDK U-Boot > date > = 22 is invalid. Should be less than 0 > ## Get date failed > > Does anyone else see this same problem on other boards? > Hi Fabio, I did the same on the qong board to check this issue. On the qong board it works: date Date: 1970-01-05 (Monday) Time: 23:32:35 => pmic dump PMIC: FSL_PMIC 0x00: 00081000 00e9ffff 00085800 00000801 00ffffff 00004838 00009546 0000009d 0x08: 00000000 00000000 00000000 00000000 00000000 00800040 00000000 00000000 0x10: 00200000 00000000 00000000 00000000 00014b1b 0001ffff 00000004 00007fff 0x18: 0001c71c 0001c71c 00024924 00024924 00221605 001e1605 00063eac 00000b7c 0x20: 00249249 00249240 00018000 00000000 00001000 0000d35a 00420000 00013060 0x28: 00180027 000e0004 00000000 00008000 00000000 00fdffdf 00000080 00000000 0x30: 00000000 000e0060 00000006 00000000 00000000 00000000 00000000 00000000 0x38: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 => Of course, Helmut's patch (already merged in u-boot-imx) is required. Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================