From patchwork Fri May 25 10:29:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 161273 X-Patchwork-Delegate: andreas.biessmann@googlemail.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 3332CB6EE7 for ; Fri, 25 May 2012 20:30:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5B8AA2818A; Fri, 25 May 2012 12:29:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 BrfFUSVleQr4; Fri, 25 May 2012 12:29:52 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8A0F32817D; Fri, 25 May 2012 12:29:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5A9322817F for ; Fri, 25 May 2012 12:29:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 i0g-h+cKCNmf for ; Fri, 25 May 2012 12:29:47 +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 mail-bk0-f44.google.com (mail-bk0-f44.google.com [209.85.214.44]) by theia.denx.de (Postfix) with ESMTPS id 10A792817C for ; Fri, 25 May 2012 12:29:45 +0200 (CEST) Received: by bkty8 with SMTP id y8so576463bkt.3 for ; Fri, 25 May 2012 03:29:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=06uThGGbHXKFZNLE+9V/CO+djVdJQ1n2ay9MsDok5zE=; b=kuAb9Wu6KT5qvebOOoR6Dzqvt8PyMFk6X/JnCkKQYY89e89k72cR+x1GJiRqiAI15J yYcrjVhBKEYLNUtROkTkP0zQMaJP6dXH9IV2a9RxVPWynzBV4hVLOTXD0Aa80wGSNQuN BqexF89hIWcDwlxGjnlS8Y6smpxF0oZ8S9YcVrvaOOdP7W8aLB0Y39TxlvS3AAP4E4mc BiTOs+C9IX52cRRJ8/OTJG6G17Wg0felJJmCf8hFA/WQJ9GaXQ7a0rmWq9fqUDb9OuKz Dbof/hUe9UmXGQBs1OOW/wl22LAne1jZ0W3yLOk6y3LM5BrXZzDuyP8c+pEZSCikn+K/ hvbg== Received: by 10.205.133.6 with SMTP id hw6mr1100185bkc.93.1337941783999; Fri, 25 May 2012 03:29:43 -0700 (PDT) Received: from azuregos.er.corscience.de (DSL01.212.114.252.242.ip-pool.NEFkom.net. [212.114.252.242]) by mx.google.com with ESMTPS id ig1sm5886655bkc.4.2012.05.25.03.29.42 (version=SSLv3 cipher=OTHER); Fri, 25 May 2012 03:29:42 -0700 (PDT) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Fri, 25 May 2012 12:29:32 +0200 Message-Id: <1337941773-16272-1-git-send-email-andreas.devel@googlemail.com> X-Mailer: git-send-email 1.7.10 MIME-Version: 1.0 Subject: [U-Boot] [PATCH 1/2] avr32:grasshopper: fix PHY initialisation X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 Signed-off-by: Andreas Bießmann --- board/in-circuit/grasshopper/grasshopper.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/board/in-circuit/grasshopper/grasshopper.c b/board/in-circuit/grasshopper/grasshopper.c index 475a759..222fe43 100644 --- a/board/in-circuit/grasshopper/grasshopper.c +++ b/board/in-circuit/grasshopper/grasshopper.c @@ -72,6 +72,13 @@ int board_early_init_f(void) portmux_enable_usart0(PORTMUX_DRIVE_MIN); portmux_enable_usart1(PORTMUX_DRIVE_MIN); #if defined(CONFIG_MACB) + /* set PHY reset and pwrdown to low */ + portmux_select_gpio(PORTMUX_PORT_B, (1 << 29) | (1 << 30), + PORTMUX_DIR_OUTPUT | PORTMUX_INIT_LOW); + udelay(100); + /* release PHYs reset */ + gpio_set_value(GPIO_PIN_PB(29), 1); + portmux_enable_macb0(PORTMUX_MACB_MII, PORTMUX_DRIVE_LOW); #endif