From patchwork Thu Apr 10 09:37:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 3960921 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7D0C09F336 for ; Thu, 10 Apr 2014 09:39:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AC0B020625 for ; Thu, 10 Apr 2014 09:39:04 +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 AAB8420612 for ; Thu, 10 Apr 2014 09:39:03 +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 1WYBRU-0004Me-0y; Thu, 10 Apr 2014 09:38: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 1WYBRN-0000Tq-Bi; Thu, 10 Apr 2014 09:38:37 +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 1WYBR0-0000Pp-Pd for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 09:38:25 +0000 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3T008K66R7DK70@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 10 Apr 2014 18:37:55 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 85.55.10364.37666435; Thu, 10 Apr 2014 18:37:55 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-00-534666738538 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id E0.16.29263.27666435; Thu, 10 Apr 2014 18:37:55 +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 <0N3T00EPX6R12T70@mmp2.samsung.com>; Thu, 10 Apr 2014 18:37:54 +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:37:16 +0900 Message-id: <1397122658-16013-6-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397122658-16013-1-git-send-email-cw00.choi@samsung.com> References: <1397122658-16013-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHLMWRmVeSWpSXmKPExsWyRsSkULc4zS3Y4N1sHovrX56zWnz+0MJu Men+BBaL3gVX2SzONr1ht9j0+BqrxeVdc9gsZpzfx2QxY/JLNov1M16zWOzdOZnRgdtj85J6 j74tqxg9Pm+SC2CO4rJJSc3JLEst0rdL4Mq43FNX8J6j4saDNpYGxuXsXYycHBICJhLbDvYy Q9hiEhfurWfrYuTiEBJYyijReeUVK0xR941VTBCJ6YwSx55dgKpqYpKYvquHBaSKTUBLYv+L G2wgtohAgMSP4+/AbGaBm0Ad78O6GDk4hAV8JM6cDgYJswioSvxZ8hFsM6+Aq8TMi++glslJ fNjzCOw6TgE3iZmLToKNEQKq6Xl0kRlkr4TAKnaJB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FMFuYODilGhizruQeZ49NPFea/V/61NtNfCo+WZ8XHHu4yi+5Xm/WV2atrsUu i5u/13wR41IVsBNgO6C4q39+p5jxUSMtyy3c0kF65mo3OCvX8F5bWKzDPMd+r8YT5dT5D9v5 5lc1/UvqWDKluub6u4XeO1vjwzaV/TQKfe955aE8T+Kzp1y2H4+7WTE19imxFGckGmoxFxUn AgAqBtiC7gIAAA== 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_053822_387397_1969EC4D 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;