From: Markus Hubig <mhubig@imko.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] at91: Add support for taskit AT91SAM9G20 boards.
Date: Thu, 2 Aug 2012 15:28:30 +0200 [thread overview]
Message-ID: <20120802132830.GB27515@imko.de> (raw)
In-Reply-To: <50198FB0.1060603@googlemail.com>
On Wed, Aug 01, 2012 at 10:21:04PM +0200, Andreas Bie?mann wrote:
> On 01.08.12 21:28, Markus Hubig wrote:
> > On Wed, Aug 01, 2012 at 11:58:22AM +0200, Andreas Bie?mann wrote:
> >>> + /* Need to reset PHY -> 500ms reset */
> >>> + writel(AT91_RSTC_KEY | AT91_RSTC_MR_ERSTL(13) |
> >>> + AT91_RSTC_MR_URSTEN, &rstc->mr);
> >>
> >> Hmm ... is it OK to generate the user reset here? I know this is the
> >> same in at least at91sam9263ek, can you please check if we should
> >> instead delete that bit in MR?
> >
> > MR? Sorry I don't get this one. Please explain a bit ...
>
> I talked about URSTEN bit in RSTC_MR (Reset Controller Mode Register;
> p99 in at91sam9g20 datasheet). The URSTEN bit set to 1 means disable low
> level detection on NRST pin. Which in fact disables external reset with
> the reset key. One have to check if this is true or maybe I'm wrong here.
Hmm ok I'll investigate this a bit further ...
> > | /* avoid shutdown by watchdog */
> > | hw_watchdog_reset();
>
> WATCHDOG_RESET();
Fixed!
> > | if (timeout <= 0) {
> > | debug("ERROR: Timeout waiting for PHY reset!\n");
>
> Error messages should not use debug macro.
Fixed!
> For timeout stuff you could also use get_timer(0) to get current
> timestamp and compare against another timestamp.
Fixed!
Cheers, Markus
next prev parent reply other threads:[~2012-08-02 13:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-30 18:01 [U-Boot] [PATCH] at91: Add support for taskit AT91SAM9G20 boards Markus Hubig
2012-08-01 9:58 ` Andreas Bießmann
2012-08-01 19:28 ` Markus Hubig
2012-08-01 20:21 ` Andreas Bießmann
2012-08-02 13:28 ` Markus Hubig [this message]
2012-08-02 13:59 ` [U-Boot] [PATCHv3] " Markus Hubig
2012-08-03 12:05 ` [U-Boot] [PATCH] " Markus Hubig
2012-08-06 12:18 ` Andreas Bießmann
2012-08-01 19:49 ` [U-Boot] [PATCH] Enable the EMAC clock in at91_macb_hw_init() Markus Hubig
2012-08-07 22:14 ` Andreas Bießmann
2012-08-01 19:57 ` [U-Boot] [PATCHv2] at91: Add support for taskit AT91SAM9G20 boards Markus Hubig
2012-08-01 20:59 ` Andreas Bießmann
2012-08-02 10:46 ` Markus Hubig
2012-08-06 12:22 ` Andreas Bießmann
2012-08-02 14:14 ` [U-Boot] [PATCH] " Markus Hubig
2012-08-06 12:49 ` Andreas Bießmann
2012-08-06 16:03 ` Markus Hubig
2012-08-06 9:05 ` Markus Hubig
2012-08-06 9:13 ` Markus Hubig
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=20120802132830.GB27515@imko.de \
--to=mhubig@imko.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