From patchwork Fri Jun 27 16:54:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: York Sun X-Patchwork-Id: 365083 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 556B91400B7 for ; Sat, 28 Jun 2014 02:55:03 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 844704B9CC; Fri, 27 Jun 2014 18:54:59 +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 mYvBWEQXcexn; Fri, 27 Jun 2014 18:54:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AC7D54B9C2; Fri, 27 Jun 2014 18:54:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F1BB14B99C for ; Fri, 27 Jun 2014 18:54:35 +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 OAjXIkpHOC7h for ; Fri, 27 Jun 2014 18:54:32 +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-by2lp0237.outbound.protection.outlook.com [207.46.163.237]) by theia.denx.de (Postfix) with ESMTPS id 038A54B99E for ; Fri, 27 Jun 2014 18:54:26 +0200 (CEST) Received: from BY2PR03CA048.namprd03.prod.outlook.com (10.141.249.21) by BL2PR03MB145.namprd03.prod.outlook.com (10.255.230.13) with Microsoft SMTP Server (TLS) id 15.0.974.11; Fri, 27 Jun 2014 16:54:23 +0000 Received: from BL2FFO11FD036.protection.gbl (2a01:111:f400:7c09::123) by BY2PR03CA048.outlook.office365.com (2a01:111:e400:2c5d::21) with Microsoft SMTP Server (TLS) id 15.0.974.11 via Frontend Transport; Fri, 27 Jun 2014 16:54:22 +0000 Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD036.mail.protection.outlook.com (10.173.161.132) with Microsoft SMTP Server (TLS) id 15.0.969.12 via Frontend Transport; Fri, 27 Jun 2014 16:54:21 +0000 Received: from oslab-l1.am.freescale.net ([10.214.83.187]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id s5RGsBMY008195; Fri, 27 Jun 2014 09:54:20 -0700 From: York Sun To: Date: Fri, 27 Jun 2014 09:54:09 -0700 Message-ID: <1403888050-909-3-git-send-email-yorksun@freescale.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403888050-909-1-git-send-email-yorksun@freescale.com> References: <1403888050-909-1-git-send-email-yorksun@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:(6009001)(189002)(199002)(77156001)(36756003)(93916002)(86362001)(87936001)(88136002)(81542001)(89996001)(92726001)(81342001)(92566001)(83072002)(85852003)(95666004)(104016002)(229853001)(76176999)(79102001)(50466002)(74502001)(48376002)(50986999)(77982001)(99396002)(33646001)(85306003)(62966002)(97736001)(50226001)(4396001)(31966008)(47776003)(15202345003)(74662001)(105606002)(104166001)(26826002)(46102001)(64706001)(20776003)(80022001)(102836001)(21056001)(84676001)(44976005)(68736004)(19580395003)(83322001)(106466001)(81156004)(19580405001)(69596002)(6806004)(87286001)(107046002)(15975445006)(76482001)(2351001); DIR:OUT; SFP:; SCL:1; SRVR:BL2PR03MB145; H:az84smr01.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID: X-Forefront-PRVS: 0255DF69B9 Received-SPF: Fail (: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=yorksun@freescale.com; X-OriginatorOrg: freescale.com Cc: trini@ti.com, York Sun Subject: [U-Boot] [Patch v1 3/4] ARMv8/ls2085a: Enable secondary cores 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 Spin table is at the very beginning of boot page. All cores are released by the first entry address. If individual entry address is needed, undef CONFIG_FSL_SMP_RELEASE_ALL. FDT fixup is called to update spin table address. Signed-off-by: York Sun --- This set depends on this bundle http://patchwork.ozlabs.org/bundle/yorksun/armv8_fsl-lsch3/ board/freescale/ls2085a/ls2085a.c | 2 ++ include/configs/ls2085a_common.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/board/freescale/ls2085a/ls2085a.c b/board/freescale/ls2085a/ls2085a.c index a18db1d..3daa787 100644 --- a/board/freescale/ls2085a/ls2085a.c +++ b/board/freescale/ls2085a/ls2085a.c @@ -88,6 +88,8 @@ void ft_board_setup(void *blob, bd_t *bd) phys_addr_t base; phys_size_t size; + ft_cpu_setup(blob, bd); + /* limit the memory size to bank 1 until Linux can handle 40-bit PA */ base = getenv_bootm_low(); size = getenv_bootm_size(); diff --git a/include/configs/ls2085a_common.h b/include/configs/ls2085a_common.h index 49e2971..6da431f 100644 --- a/include/configs/ls2085a_common.h +++ b/include/configs/ls2085a_common.h @@ -56,6 +56,7 @@ */ #define SECONDARY_CPU_BOOT_PAGE (CONFIG_SYS_SDRAM_BASE) #define CPU_RELEASE_ADDR SECONDARY_CPU_BOOT_PAGE +#define CONFIG_FSL_SMP_RELEASE_ALL /* Generic Timer Definitions */ #define COUNTER_FREQUENCY 12000000 /* 12MHz */ @@ -171,6 +172,7 @@ /* Miscellaneous configurable options */ #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_DDR_SDRAM_BASE + 0x10000000) +#define CONFIG_ARCH_EARLY_INIT_R /* Physical Memory Map */ /* fixme: these need to be checked against the board */