public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andre Renaud <andre@bluewatersys.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] at91: Add support for Bluewater Systems Snapper 9G45 module
Date: Wed, 02 Nov 2011 09:38:39 +1300	[thread overview]
Message-ID: <4EB058CF.6030609@bluewatersys.com> (raw)
In-Reply-To: <1320160968-3954-1-git-send-email-sglass@bluewatersys.com>

Hi Simon,

On 02/11/11 04:22, Simon Glass wrote:
> +	/* Need to reset PHY -> 500ms reset */
> +	erstl = readl(&rstc->mr) & AT91_RSTC_MR_ERSTL_MASK;
> +	writel(AT91_RSTC_KEY | AT91_RSTC_MR_ERSTL(13) |
> +	       AT91_RSTC_MR_URSTEN, &rstc->mr);
> +	writel(AT91_RSTC_KEY | AT91_RSTC_CR_EXTRST, &rstc->cr);

You don't actually need to reset the PHY for 500ms, only 100us, so the
AT91_RSTC_MR_ERSTL(13) can be replaced with AT91_RSTC_MR_ERSTL(0), which
give you the minimum delay (62ms I think).

Regards,
Andre

-- 
Bluewater Systems - An Aiotec Company

Andre Renaud        		
andre at bluewatersys.com          5 Amuri Park, 404 Barbadoes St
www.bluewatersys.com            PO Box 13 889, Christchurch 8013
www.aiotec.co.nz                New Zealand
Phone: +64 3 3779127            Freecall: Australia 1800 148 751
Fax:   +64 3 3779135            USA 1800 261 2934

  reply	other threads:[~2011-11-01 20:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-23  3:09 [U-Boot] [PATCH] at91: Add support for Bluewater Systems Snapper 9G45 module Simon Glass
2011-10-23  3:57 ` Reinhard Meyer
2011-11-01 14:44   ` Simon Glass
2011-11-01 15:22 ` [U-Boot] [PATCH v2] " Simon Glass
2011-11-01 20:38   ` Andre Renaud [this message]
2011-11-02  9:32   ` Igor Grinberg

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=4EB058CF.6030609@bluewatersys.com \
    --to=andre@bluewatersys.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