From patchwork Thu Aug 19 17:28:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 71825 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id 71CF5157D71 for ; Thu, 19 Aug 2010 19:37:10 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id 52ACF316EC0A for ; Thu, 19 Aug 2010 19:37:10 +0200 (MEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.17) for (single-drop); Thu, 19 Aug 2010 19:37:10 +0200 (MEST) Received: from murder ([192.168.6.180]) by backend2 (Cyrus v2.2.12) with LMTPA; Thu, 19 Aug 2010 19:35:59 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend3.mail.m-online.net (Cyrus v2.2.12) with LMTPA; Thu, 19 Aug 2010 19:35:58 +0200 Received: from scanner-4.m-online.net (scanner-4.mail.m-online.net [192.168.1.18]) by mail.m-online.net (Postfix) with ESMTP id E92931C000E2; Thu, 19 Aug 2010 19:35:58 +0200 (CEST) Received: from mxin-2.m-online.net ([192.168.1.21]) by scanner-4.m-online.net (scanner-4.m-online.net [192.168.1.18]) (amavisd-new, port 10026) with ESMTP id 10989-03-4; Thu, 19 Aug 2010 19:35:57 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-2.m-online.net (Postfix) with ESMTP id 7132E46C0BF; Thu, 19 Aug 2010 19:35:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 40E9328089; Thu, 19 Aug 2010 19:35:50 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gtzTgBOVp3oI; Thu, 19 Aug 2010 19:35:50 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8F5FD2808D; Thu, 19 Aug 2010 19:35:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1CC5428087 for ; Thu, 19 Aug 2010 19:35:41 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Qv+9wt3AdZjr for ; Thu, 19 Aug 2010 19:35:39 +0200 (CEST) X-Greylist: delayed 399 seconds by postgrey-1.27 at theia; Thu, 19 Aug 2010 19:35:37 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from web51008.mail.re2.yahoo.com (web51008.mail.re2.yahoo.com [206.190.38.139]) by theia.denx.de (Postfix) with SMTP id 074B928086 for ; Thu, 19 Aug 2010 19:35:37 +0200 (CEST) Received: (qmail 8615 invoked by uid 60001); 19 Aug 2010 17:28:57 -0000 Message-ID: <97111.4004.qm@web51008.mail.re2.yahoo.com> X-YMail-OSG: C1Uaf7sVM1mwMDolaNkgsyojuoor7_hFcOsmWLhoUQ7_7PR VzLgdof7pRxesDFfqf9lNnYe7tvSlYC75JFRh7h1LwWNE5tw_EZB.fkVp3wR BBkfGfyufOPa2lahzoYG1TbT1GFCTjo5LeMnidigEhSNqTogsraeUfHh.JgI HApgU3jXdwXnqQsypIDWT5kLj7DCjlmILkGWhpvtirUXhyJSuGP1hMWtMDK. uxeaiR3RFr3w2vouQZiqDt6pM1E730KTNoFA796nkp95QJWc.ktx4sA3wtBN lsVQ1DehzozCDaWwZ7Anl8CjLF2b0Y2n.ixFtwcxhDfBSLAOhYg-- Received: from [192.88.165.35] by web51008.mail.re2.yahoo.com via HTTP; Thu, 19 Aug 2010 10:28:56 PDT X-Mailer: YahooMailClassic/11.3.2 YahooMailWebService/0.8.105.279950 Date: Thu, 19 Aug 2010 10:28:56 -0700 (PDT) From: Fabio Estevam To: u-boot@lists.denx.de MIME-Version: 1.0 Cc: fabio.estevam@freescale.com Subject: [U-Boot] [PATCH] mx51evk: Provide a proper reset for the Ethernet PHY X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Virus-Scanned: by amavisd-new at m-online.net Provide a proper reset for the Ethernet PHY (LAN8700) on the MX51EVK. Signed-off-by: Fabio Estevam --- board/freescale/mx51evk/mx51evk.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c index 75d642b..70cce55 100644 --- a/board/freescale/mx51evk/mx51evk.c +++ b/board/freescale/mx51evk/mx51evk.c @@ -261,6 +261,10 @@ static void power_init(void) /* Reset the ethernet controller over GPIO */ writel(0x1, IOMUXC_BASE_ADDR + 0x0AC); + udelay(200); + reg = readl(GPIO2_BASE_ADDR + 0x0); + reg |= 0x4000; /* Set reset line to high*/ + writel(reg, GPIO2_BASE_ADDR + 0x0); /* Enable VGEN3, VCAM, VAUDIO, VVIDEO, VSD regulators */ val = VGEN3EN | VGEN3CONFIG | VCAMEN | VCAMCONFIG |