From patchwork Fri Apr 29 07:26:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Fleming X-Patchwork-Id: 93400 X-Patchwork-Delegate: galak@kernel.crashing.org 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 505AD1007D7 for ; Fri, 29 Apr 2011 17:27:11 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 81E1E280A8; Fri, 29 Apr 2011 09:27:09 +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 I1XXTGmdDaqC; Fri, 29 Apr 2011 09:27:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C289B280A9; Fri, 29 Apr 2011 09:27:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 71491280A9 for ; Fri, 29 Apr 2011 09:27:05 +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 8F5qWXoDGzPt for ; Fri, 29 Apr 2011 09:27:04 +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 ch1outboundpool.messaging.microsoft.com (ch1outboundpool.messaging.microsoft.com [216.32.181.181]) by theia.denx.de (Postfix) with ESMTPS id 094F8280A8 for ; Fri, 29 Apr 2011 09:27:02 +0200 (CEST) Received: from mail22-ch1-R.bigfish.com (216.32.181.168) by CH1EHSOBE008.bigfish.com (10.43.70.58) with Microsoft SMTP Server id 14.1.225.8; Fri, 29 Apr 2011 07:26:58 +0000 Received: from mail22-ch1 (localhost.localdomain [127.0.0.1]) by mail22-ch1-R.bigfish.com (Postfix) with ESMTP id C9B2911C83E3; Fri, 29 Apr 2011 07:26:58 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail22-ch1 (localhost.localdomain [127.0.0.1]) by mail22-ch1 (MessageSwitch) id 1304062018707506_12189; Fri, 29 Apr 2011 07:26:58 +0000 (UTC) Received: from CH1EHSMHS034.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.253]) by mail22-ch1.bigfish.com (Postfix) with ESMTP id A9FF07D0046; Fri, 29 Apr 2011 07:26:58 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CH1EHSMHS034.bigfish.com (10.43.70.34) with Microsoft SMTP Server (TLS) id 14.1.225.8; Fri, 29 Apr 2011 07:26:55 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.270.2; Fri, 29 Apr 2011 02:26:53 -0500 Received: from localhost (firefly.am.freescale.net [10.82.123.6]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p3T7QqFS016135; Fri, 29 Apr 2011 02:26:53 -0500 (CDT) From: Andy Fleming To: Date: Fri, 29 Apr 2011 02:26:52 -0500 Message-ID: <1304062012-15396-1-git-send-email-afleming@freescale.com> X-Mailer: git-send-email 1.6.5.2.g6ff9a MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] tsec: Fix MDIO on devices with eTSEC2 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 The tsec driver was defining the default MDIO address as the TSEC_BASE + 0x520, but on eTSEC2 controllers, the first TSEC's registers are separated from the MDIO registers. Use the existing MDIO_BASE_ADDR, instead. Signed-off-by: Andy Fleming Acked-by: Timur Tabi --- include/tsec.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/tsec.h b/include/tsec.h index 8ed30ac..f0f3d4d 100644 --- a/include/tsec.h +++ b/include/tsec.h @@ -25,7 +25,7 @@ #define TSEC_SIZE 0x01000 #define TSEC_MDIO_OFFSET 0x01000 -#define CONFIG_SYS_MDIO_BASE_ADDR (TSEC_BASE_ADDR + 0x520) +#define CONFIG_SYS_MDIO_BASE_ADDR (MDIO_BASE_ADDR + 0x520) #define DEFAULT_MII_NAME "FSL_MDIO"