From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Renaud Date: Wed, 02 Nov 2011 09:38:39 +1300 Subject: [U-Boot] [PATCH v2] at91: Add support for Bluewater Systems Snapper 9G45 module In-Reply-To: <1320160968-3954-1-git-send-email-sglass@bluewatersys.com> References: <1319339348-2959-1-git-send-email-sglass@bluewatersys.com> <1320160968-3954-1-git-send-email-sglass@bluewatersys.com> Message-ID: <4EB058CF.6030609@bluewatersys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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