From patchwork Sun Jun 7 13:04:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: maxin.john@enea.com X-Patchwork-Id: 481734 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 9F306140187 for ; Sun, 7 Jun 2015 23:05:21 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D2C6D4B727; Sun, 7 Jun 2015 15:05:17 +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 vPVjwwDA71V4; Sun, 7 Jun 2015 15:05:17 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DE18D4B719; Sun, 7 Jun 2015 15:05:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5FB164B719 for ; Sun, 7 Jun 2015 15:05:14 +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 tYJGtEKyPIZM for ; Sun, 7 Jun 2015 15:05:14 +0200 (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 mx-3.enea.com (sestofw01.enea.se [192.36.1.252]) by theia.denx.de (Postfix) with SMTP id 1EC794B70D for ; Sun, 7 Jun 2015 15:05:09 +0200 (CEST) Received: from sestofb10.enea.se (172.21.3.145) by smtp.enea.com (172.21.1.209) with Microsoft SMTP Server id 14.3.224.2; Sun, 7 Jun 2015 15:05:08 +0200 Received: by sestofb10.enea.se (Postfix, from userid 4454) id 83B2F28BA1D; Sun, 7 Jun 2015 15:05:08 +0200 (CEST) From: "Maxin B. John" To: Date: Sun, 7 Jun 2015 15:04:56 +0200 Message-ID: <1433682296-41814-1-git-send-email-maxin.john@enea.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Received-SPF: None (SESTOEX03.enea.se: maxin.john@enea.com does not designate permitted sender hosts) Subject: [U-Boot] [PATCH] Bananapi: Fix ethernet device initialization X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Ethernet device initialization fails with the following message: Net: PH: dir_output: error: gpio PH23 not reserved Phy 1 not found PHY reset timed out eth0: ethernet@01c50000 Tested on Banana Pi board. Signed-off-by: Maxin B. John --- arch/arm/cpu/armv7/sunxi/board.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/cpu/armv7/sunxi/board.c b/arch/arm/cpu/armv7/sunxi/board.c index a82c8b9..030a711 100644 --- a/arch/arm/cpu/armv7/sunxi/board.c +++ b/arch/arm/cpu/armv7/sunxi/board.c @@ -223,6 +223,7 @@ int cpu_eth_init(bd_t *bis) __maybe_unused int rc; #ifdef CONFIG_MACPWR + gpio_request(CONFIG_MACPWR, "MAC Power"); gpio_direction_output(CONFIG_MACPWR, 1); mdelay(200); #endif