From patchwork Wed Dec 1 04:59:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reinhard Meyer X-Patchwork-Id: 73694 X-Patchwork-Delegate: info@emk-elektronik.de 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 DE120B70DA for ; Wed, 1 Dec 2010 15:45:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E4D68280A1; Wed, 1 Dec 2010 05:45:14 +0100 (CET) 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 kPAcpNDLYEDY; Wed, 1 Dec 2010 05:45:14 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EF06D2809B; Wed, 1 Dec 2010 05:45:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A1752809B for ; Wed, 1 Dec 2010 05:45:11 +0100 (CET) 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 pTOdUwbEHitA for ; Wed, 1 Dec 2010 05:45:09 +0100 (CET) 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 moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by theia.denx.de (Postfix) with ESMTP id 05EC12805F for ; Wed, 1 Dec 2010 05:45:07 +0100 (CET) Received: from localhost.localdomain (p5B201303.dip0.t-ipconnect.de [91.32.19.3]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LZjNw-1OgfJm3NUa-00ldtE; Wed, 01 Dec 2010 05:45:07 +0100 From: Reinhard Meyer To: u-boot@lists.denx.de Date: Wed, 1 Dec 2010 05:59:12 +0100 Message-Id: <1291179552-12019-1-git-send-email-u-boot@emk-elektronik.de> X-Mailer: git-send-email 1.5.6.5 X-Provags-ID: V02:K0:iZaBZ+bN/FA8zrnUzIivqfNAUZMNgez9UBqTwT3qS/U cshKi6HDWMHtXDUbxi2ahVNKlOdUfdv47r4PeQjfG3MKg9BcjM 6tNfrTOECX67+a4Vt0sNfF9UX5TTWKWEn4GNpAFycXT464/Yob udXOfhKF/mDEB1tPkPwbvt9Z8TNLSyPsJxJXzWRkPWAfF1G3yG YPGeK1e4RNxcBu+bqd2W17HbMVawEusM5vrNmeAB4A= Subject: [U-Boot] [PATCH] AT91: fix EMAC gpio init in at91sam9260_devices.c 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The AT91SAM9G20 BOOT ROM apparently initializes PA23 and PA24 to multi drive (open drain). Revert this, if those pins are going to be used for MII. Signed-off-by: Reinhard Meyer --- arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c index f699f4d..c1822b7 100644 --- a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c +++ b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c @@ -204,6 +204,11 @@ void at91_macb_hw_init(void) #else at91_set_b_periph(AT91_PIO_PORTA, 23, 0); /* ETX2 */ at91_set_b_periph(AT91_PIO_PORTA, 24, 0); /* ETX3 */ +#if defined(CONFIG_AT91SAM9G20) + /* 9G20 BOOT ROM initializes those pins to multi-drive, undo that */ + at91_set_pio_multi_drive(AT91_PIO_PORTA, 23, 0); + at91_set_pio_multi_drive(AT91_PIO_PORTA, 24, 0); +#endif #endif at91_set_b_periph(AT91_PIO_PORTA, 22, 0); /* ETXER */ #endif