From patchwork Tue Apr 15 01:59:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3988531 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D4717BFF02 for ; Tue, 15 Apr 2014 02:03:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6CF820149 for ; Tue, 15 Apr 2014 02:03:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A6E87200E9 for ; Tue, 15 Apr 2014 02:03:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WZsg2-0007EF-VE; Tue, 15 Apr 2014 02:00:46 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WZsfY-0005oL-P8 for linux-arm-kernel@lists.infradead.org; Tue, 15 Apr 2014 02:00:17 +0000 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4100G3YUVVN370@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 15 Apr 2014 10:59:55 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id D7.50.09028.B929C435; Tue, 15 Apr 2014 10:59:55 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-6d-534c929b394f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 82.4E.29263.A929C435; Tue, 15 Apr 2014 10:59:55 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4100LE6UVPW9A0@mmp1.samsung.com>; Tue, 15 Apr 2014 10:59:54 +0900 (KST) From: Chanwoo Choi To: linux-kernel@vger.kernel.org Subject: [PATCHv2 5/8] ARM: EXYNOS: Support secondary CPU boot of Exynos3250 Date: Tue, 15 Apr 2014 10:59:49 +0900 Message-id: <1397527192-21988-6-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397527192-21988-1-git-send-email-cw00.choi@samsung.com> References: <1397527192-21988-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPIsWRmVeSWpSXmKPExsWyRsSkQHf2JJ9ggwsThSz+TjrGbjFp3QEm i8v7tS2uf3nOajH/yDlWi88fWtgtehdcZbM42/SG3WLT42usFpd3zWGzmHF+H5PF7cu8Fn/v /GOzOHX9M1Bo8ks2i/UzXrNYHJuxhNFi787JjA5CHmvmrWH0aGnuYfP4/WsSo8ffVS+YPe5c 28PmsXlJvceVE02sHn1bVjF6fN4kF8AZxWWTkpqTWZZapG+XwJWx+uwBloK1XBXfpj9hbmDc wdHFyMkhIWAiMav/FxOELSZx4d56NhBbSGApo8T5k7EwNYe3vgGKcwHFFzFKPG6+zg7hNDFJ fL5+mQWkik1AS2L/ixtg3SICChKbe5+xghQxC6xllrg4qREsISzgI7F85xJWEJtFQFXiUucv ZhCbV8BVYsGRtewQ6+QkPux5BGZzCrhJ7L3/lxniJFeJ9ftnM4EMlRBo5ZC48nkp1CABiW+T DwFdwQGUkJXYdIA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maVEk/OBSSevJN7Q2MTMyNLI3NDCyNic NGElcd4DrdaBQgLpiSWp2ampBalFMFuYODilGhgDPi6wnFQSddMjknmTs239R8E5ag++CWWU m7alSHz5YBwQXLH1nv9Npp9MTVfb71SumhF4MzZ3i/j22xNW6nayTtzf1RG6p3jrLOuN6utk FqVY/g8u/Lq4xtLXpPTa131Nrhw7t2jtemb46da8ZmuehtuisQFbnmr1++y/1rSeVSv8dSzD nr9KLMUZiYZazEXFiQBDi4zGMAMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140414_190016_969720_DB079A26 X-CRM114-Status: GOOD ( 12.01 ) X-Spam-Score: -6.0 (------) Cc: devicetree@vger.kernel.org, kgene.kim@samsung.com, linux@arm.linux.org.uk, arnd@arndb.de, marc.zyngier@arm.com, t.figa@samsung.com, hyunhee.kim@samsung.com, sw0312.kim@samsung.com, yj44.cho@samsung.com, cw00.choi@samsung.com, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, thomas.abraham@linaro.org, ben-linux@fluff.org, olof@lixom.net, chanho61.park@samsung.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fix the offset of CPU boot address and don't operate smc call of SMC_CMD_CPU1BOOT command for Exynos3250. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park --- arch/arm/mach-exynos/firmware.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c index aa01c42..6205d4f 100644 --- a/arch/arm/mach-exynos/firmware.c +++ b/arch/arm/mach-exynos/firmware.c @@ -30,13 +30,16 @@ static int exynos_do_idle(void) static int exynos_cpu_boot(int cpu) { + if (soc_is_exynos3250()) { + return 0; /* * The second parameter of SMC_CMD_CPU1BOOT command means CPU id. * But, Exynos4212 has only one secondary CPU so second parameter * isn't used for informing secure firmware about CPU id. */ - if (soc_is_exynos4212()) + } else if (soc_is_exynos4212()) { cpu = 0; + } exynos_smc(SMC_CMD_CPU1BOOT, cpu, 0, 0); return 0; @@ -46,7 +49,7 @@ static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr) { void __iomem *boot_reg = S5P_VA_SYSRAM_NS + 0x1c; - if (!soc_is_exynos4212()) + if (!soc_is_exynos4212() && !soc_is_exynos3250()) boot_reg += 4*cpu; __raw_writel(boot_addr, boot_reg);