* [U-Boot] Accessing MC13783 RTC registers
@ 2011-10-24 13:18 Fabio Estevam
2011-10-24 13:24 ` Marek Vasut
2011-10-24 13:48 ` Stefano Babic
0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2011-10-24 13:18 UTC (permalink / raw)
To: u-boot
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?
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Accessing MC13783 RTC registers
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
1 sibling, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2011-10-24 13:24 UTC (permalink / raw)
To: u-boot
> 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
>
Fabio,
is it possibly connected via i2c?
Cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Accessing MC13783 RTC registers
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
2011-10-24 15:22 ` Fabio Estevam
1 sibling, 1 reply; 4+ messages in thread
From: Stefano Babic @ 2011-10-24 13:48 UTC (permalink / raw)
To: u-boot
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
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] Accessing MC13783 RTC registers
2011-10-24 13:48 ` Stefano Babic
@ 2011-10-24 15:22 ` Fabio Estevam
0 siblings, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2011-10-24 15:22 UTC (permalink / raw)
To: u-boot
Hi Stefano,
On Mon, Oct 24, 2011 at 11:48 AM, Stefano Babic <sbabic@denx.de> wrote:
> I did the same on the qong board to check this issue. On the qong board
> it works:
Thanks for testing it. I managed to get it working on MX31PDK too.
Will submit a patch soon.
Thanks,
Fabio Estevam
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-24 15:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-10-24 15:22 ` Fabio Estevam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox