From patchwork Thu Apr 10 09:28:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3960801 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 8A6C0BFF02 for ; Thu, 10 Apr 2014 09:34:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC41F20625 for ; Thu, 10 Apr 2014 09:34:26 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (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 62D9520612 for ; Thu, 10 Apr 2014 09:34:25 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBKh-0000Pr-Sy; Thu, 10 Apr 2014 09:31:44 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBKE-00004t-0e; Thu, 10 Apr 2014 09:31:14 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WYBIY-0008Nu-FG for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 09:30:18 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3T007FY6C16280@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 18:28:49 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.112]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id D3.9E.10092.15466435; Thu, 10 Apr 2014 18:28:49 +0900 (KST) X-AuditID: cbfee68f-b7f156d00000276c-d4-534664517315 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id BF.27.28157.15466435; Thu, 10 Apr 2014 18:28:49 +0900 (KST) Received: from chan.10.32.193.11 ([10.252.81.195]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3T00F1Z6C0I110@mmp2.samsung.com>; Thu, 10 Apr 2014 18:28:48 +0900 (KST) From: Chanwoo Choi To: kgene.kim@samsung.com, t.figa@samsung.com, linux-samsung-soc@vger.kernel.org Subject: [PATCH 05/27] ARM: EXYNOS: Support secondary CPU boot of Exynos3250 Date: Thu, 10 Apr 2014 18:28:22 +0900 Message-id: <1397122124-15690-6-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397122124-15690-1-git-send-email-cw00.choi@samsung.com> References: <1397122124-15690-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHLMWRmVeSWpSXmKPExsWyRsSkQDcwxS3YYOsTPovrX56zWnz+0MJu Men+BBaL3gVX2SzONr1ht9j0+BqrxeVdc9gsZpzfx2QxY/JLNov1M16zWOzdOZnRgdtj85J6 j74tqxg9Pm+SC2CO4rJJSc3JLEst0rdL4Mq43FNX8J6j4saDNpYGxuXsXYycHBICJhLv5k9k g7DFJC7cWw9kc3EICSxllJh65yIrTNHbNz3sEInpjBKzzl1jhXCamCSafx1mBKliE9CS2P/i BtgoEYEAiR/H34HZzAI3GSWOvQ/rYuTgEBbwkThzOhgkzCKgKjH//E4mEJtXwFVi24bLUFfI SXzY8wjsOk4BN4lP31vBjhACqmn6sA/sOgmBVewSk3s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h4uCUamDkXB1+SMXpRM+1V++lV66eeHt1+ErHkzw71h7dLrzYebllQnvT P8uJc/ZMe9Md911rq2Z+wkuhJrdPzfEBvGt43pU+/tnL4FJk5eRi/nH1f5GTlY8tOK1yneeG nXb8FzGtji3G76wOh6euXp+VUcluJYZlLTXLJ0xcL3B2zjrdPXuf1XL/WyetxFKckWioxVxU nAgAOOk3+O4CAAA= 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-20140410_052949_367051_5D956182 X-CRM114-Status: GOOD ( 11.75 ) X-Spam-Score: -7.5 (-------) Cc: hyunhee.kim@samsung.com, sw0312.kim@samsung.com, linux-kernel@vger.kernel.org, yj44.cho@samsung.com, inki.dae@samsung.com, cw00.choi@samsung.com, kyungmin.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=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Signed-off-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 91a911d..8350007 100644 --- a/arch/arm/mach-exynos/firmware.c +++ b/arch/arm/mach-exynos/firmware.c @@ -30,10 +30,13 @@ static int exynos_do_idle(void) static int exynos_cpu_boot(int cpu) { - if (soc_is_exynos4212()) + if (soc_is_exynos3250()) + goto out; + else if (soc_is_exynos4212()) exynos_smc(SMC_CMD_CPU1BOOT, 0, 0, 0); else exynos_smc(SMC_CMD_CPU1BOOT, cpu, 0, 0); +out: return 0; } @@ -41,7 +44,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()) goto out; else boot_reg += 4*cpu;