From patchwork Fri Oct 17 07:26:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alison Wang X-Patchwork-Id: 400428 X-Patchwork-Delegate: yorksun@freescale.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 46DF4140081 for ; Fri, 17 Oct 2014 18:28:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 34C03A7418; Fri, 17 Oct 2014 09:27:45 +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 kzHwW9vqGm1J; Fri, 17 Oct 2014 09:27:44 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F75DA7413; Fri, 17 Oct 2014 09:27:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 69D5DA73F3 for ; Fri, 17 Oct 2014 09:27:34 +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 2RpqlUQ+Z11Y for ; Fri, 17 Oct 2014 09:27:34 +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 na01-by2-obe.outbound.protection.outlook.com (mail-by2on0121.outbound.protection.outlook.com [207.46.100.121]) by theia.denx.de (Postfix) with ESMTPS id 48C894B5F5 for ; Fri, 17 Oct 2014 09:27:26 +0200 (CEST) Received: from BN3PR0301CA0019.namprd03.prod.outlook.com (25.160.180.157) by BN1PR03MB153.namprd03.prod.outlook.com (10.255.201.15) with Microsoft SMTP Server (TLS) id 15.0.1049.19; Fri, 17 Oct 2014 07:27:22 +0000 Received: from BY2FFO11FD054.protection.gbl (2a01:111:f400:7c0c::114) by BN3PR0301CA0019.outlook.office365.com (2a01:111:e400:4000::29) with Microsoft SMTP Server (TLS) id 15.0.1054.13 via Frontend Transport; Fri, 17 Oct 2014 07:27:22 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD054.mail.protection.outlook.com (10.1.15.191) with Microsoft SMTP Server (TLS) id 15.0.1039.16 via Frontend Transport; Fri, 17 Oct 2014 07:27:22 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s9H7RA3T031818; Fri, 17 Oct 2014 00:27:19 -0700 From: Alison Wang To: , Date: Fri, 17 Oct 2014 15:26:36 +0800 Message-ID: <1413530796-12881-5-git-send-email-b18965@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1413530796-12881-1-git-send-email-b18965@freescale.com> References: <1413530796-12881-1-git-send-email-b18965@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(199003)(54534003)(189002)(50466002)(104166001)(64706001)(50226001)(87286001)(92726001)(80022003)(84676001)(69596002)(46102003)(31966008)(26826002)(21056001)(20776003)(4396001)(62966002)(19580405001)(47776003)(102836001)(85852003)(88136002)(89996001)(87936001)(106466001)(85306004)(33646002)(104016003)(81156004)(97736003)(99396003)(48376002)(105606002)(36756003)(120916001)(19580395003)(44976005)(93916002)(92566001)(229853001)(76176999)(50986999)(76482002)(95666004)(6806004)(77156001)(68736004)(107046002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR03MB153; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB153; X-Exchange-Antispam-Report-Test: UriScan:; X-Forefront-PRVS: 0367A50BB1 Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=alison.wang@freescale.com; X-OriginatorOrg: freescale.com Subject: [U-Boot] [PATCH v2 5/5] arm: ls102xa: Select ge2_clk125 for eTSEC clock muxing X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 EC1 pins in RCW can be selected as RGMII1, GPIO3, CAN1/2, FTM1 or SAI1/2. There is a bug that EC3 RGMII could not work when selecting EC1 as other functionality except RGMII. The workaround is to select ge2_clk125 for eTSEC clock muxing in register SCFG_ETSECCMCR. Signed-off-by: Alison Wang --- Change log: v2: New patch. board/freescale/ls1021aqds/ls1021aqds.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/freescale/ls1021aqds/ls1021aqds.c b/board/freescale/ls1021aqds/ls1021aqds.c index 56028f8..b744250 100644 --- a/board/freescale/ls1021aqds/ls1021aqds.c +++ b/board/freescale/ls1021aqds/ls1021aqds.c @@ -137,6 +137,7 @@ int board_early_init_f(void) #ifdef CONFIG_TSEC_ENET out_be32(&scfg->etsecdmamcr, SCFG_ETSECDMAMCR_LE_BD_FR); + out_be32(&scfg->etsecmcr, SCFG_ETSECCMCR_GE2_CLK125); #endif #ifdef CONFIG_FSL_IFC