From: Stephen Caudle <stephen@doceme.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] RTC value corruption on QIL-A9G20 startup
Date: Tue, 25 Aug 2009 08:49:51 -0400 [thread overview]
Message-ID: <c2b149fd0908250549u575445d9mbf8a5819c0bc9c6c@mail.gmail.com> (raw)
In-Reply-To: <20090825083729.GA10327@pc-ras4041.res.insa>
Hi Albin,
On Tue, Aug 25, 2009 at 4:37 AM, Albin Tonnerre
<albin.tonnerre@free-electrons.com> wrote:
> I guess you mean SBC35-A9G20?
I actually tried it with the patches for both boards (TNY & SBC35) and
saw the same result.
> > Everything seems to work properly except the RTC. ?They use the same M41T94
> > part and the CS is the same on both boards (PA3). ?I can set the RTC using the
> > "date" command and read back the value okay. ?However, when I power cycle the
> > board, the value is getting corrupted at startup due to some erroneous SPI
> > write.
> >
> > I don't believe the code you submitted is causing this problem because the RTC
> > is getting corrupted even if I compile out SPI and RTC support completely. ?I
> > was just wondering if you have seen this problem on your board?
>
> Yes, I also experience this issue.
Well, at least I'm not the only one. :)
>
> > I probed the
> > CS line with an oscilloscope and I am definitely seeing it go low on U-Boot
> > startup for a short time, but the clock line seems to be floating. ?I believe
> > the activation of the CS at startup is causing junk data to be written to the
> > RTC, which is corrupting it. ?Any idea why this might be happenning?
>
> Currently, I don't really have any idea. Besides, it's going to be hard for me
> to debug this, as I don't have an oscilloscope at hand. Would you please try to
> run u-boot within a debugger to see where exactly the CS line is driven low?
I upgraded to the "next" branch and the problem seems to have gone away. I will
continue to investigate the root cause of this and let you know what I find.
Regards,
Stephen
prev parent reply other threads:[~2009-08-25 12:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-25 2:01 [U-Boot] RTC value corruption on QIL-A9G20 startup Stephen Caudle
2009-08-25 8:37 ` Albin Tonnerre
2009-08-25 9:38 ` Eric Bénard
2009-08-25 12:51 ` Stephen Caudle
2009-08-25 16:48 ` Albin Tonnerre
2009-08-27 17:48 ` William C. Landolina
2009-08-27 20:57 ` Eric Bénard
2009-08-28 1:57 ` Stephen Caudle
2009-08-25 12:49 ` Stephen Caudle [this message]
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=c2b149fd0908250549u575445d9mbf8a5819c0bc9c6c@mail.gmail.com \
--to=stephen@doceme.com \
--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