From patchwork Fri Sep 26 10:33:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alison Wang X-Patchwork-Id: 393659 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 7488914009E for ; Fri, 26 Sep 2014 20:35:27 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 67A5C4A02A; Fri, 26 Sep 2014 12:35:24 +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 7vXyIPNxyWeH; Fri, 26 Sep 2014 12:35:24 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7C5284A04C; Fri, 26 Sep 2014 12:35:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6658BA73E8 for ; Fri, 26 Sep 2014 12:34:54 +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 RYxCT4n1uOsg for ; Fri, 26 Sep 2014 12:34:51 +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-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0145.outbound.protection.outlook.com [157.56.111.145]) by theia.denx.de (Postfix) with ESMTPS id 8646F4A041 for ; Fri, 26 Sep 2014 12:34:26 +0200 (CEST) Received: from CH1PR03CA001.namprd03.prod.outlook.com (10.255.156.146) by BLUPR03MB375.namprd03.prod.outlook.com (10.141.75.149) with Microsoft SMTP Server (TLS) id 15.0.1034.13; Fri, 26 Sep 2014 10:34:19 +0000 Received: from BN1AFFO11FD030.protection.gbl (10.255.156.132) by CH1PR03CA001.outlook.office365.com (10.255.156.146) with Microsoft SMTP Server (TLS) id 15.0.1039.15 via Frontend Transport; Fri, 26 Sep 2014 10:34:18 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD030.mail.protection.outlook.com (10.58.52.168) with Microsoft SMTP Server (TLS) id 15.0.1029.15 via Frontend Transport; Fri, 26 Sep 2014 10:34:18 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s8QAY7Ls009200; Fri, 26 Sep 2014 03:34:15 -0700 From: Alison Wang To: , , , Date: Fri, 26 Sep 2014 18:33:38 +0800 Message-ID: <1411727622-26557-4-git-send-email-b18965@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1411727622-26557-1-git-send-email-b18965@freescale.com> References: <1411727622-26557-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)(189002)(54534003)(199003)(69596002)(107046002)(87286001)(120916001)(102836001)(76482002)(93916002)(85306004)(81342003)(104166001)(50466002)(88136002)(104016003)(90102001)(33646002)(105606002)(31966008)(10300001)(106466001)(81156004)(107886001)(46102003)(48376002)(95666004)(81542003)(50986999)(84676001)(50226001)(20776003)(47776003)(4396001)(68736004)(89996001)(76176999)(80022003)(64706001)(21056001)(92566001)(77982003)(2201001)(79102003)(62966002)(99396003)(97736003)(74662003)(74502003)(36756003)(6806004)(85852003)(19580405001)(87936001)(19580395003)(83072002)(92726001)(44976005)(77156001)(83322001)(229853001)(41533002)(142923001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB375; H:az84smr01.freescale.net; FPR:; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB375; X-Forefront-PRVS: 03468CBA43 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 3/7] arm: spl: Add I2C linker list in generic .lds 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 On LS1, DDR is initialized by reading SPD through I2C interface in SPL code. For I2C, ll_entry_count() is called, and it returns the number of elements of a linker-generated array placed into subsection of .u_boot_list section specified by _list argument. So add I2C linker list in the generic .lds to fix the issue about using I2C in SPL. Signed-off-by: Alison Wang --- Change log: v2: New file. arch/arm/cpu/u-boot-spl.lds | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/cpu/u-boot-spl.lds b/arch/arm/cpu/u-boot-spl.lds index 4beddf0..bddef74 100644 --- a/arch/arm/cpu/u-boot-spl.lds +++ b/arch/arm/cpu/u-boot-spl.lds @@ -32,6 +32,9 @@ SECTIONS } . = ALIGN(4); + .u_boot_list : { + KEEP(*(SORT(.u_boot_list*_i2c_*))); + } . = .;