public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Accessing MC13783 RTC registers
Date: Mon, 24 Oct 2011 15:48:39 +0200	[thread overview]
Message-ID: <4EA56CB7.8010302@denx.de> (raw)
In-Reply-To: <CAOMZO5B0uMjJNXOvjt4UOFi1Afvrp1tviJ_-yrunp+9VXcqYaQ@mail.gmail.com>

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
> <reg num> = 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
=====================================================================

  parent reply	other threads:[~2011-10-24 13:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-24 13:18 [U-Boot] Accessing MC13783 RTC registers Fabio Estevam
2011-10-24 13:24 ` Marek Vasut
2011-10-24 13:48 ` Stefano Babic [this message]
2011-10-24 15:22   ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EA56CB7.8010302@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox