From patchwork Thu Apr 10 09:28:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 28131 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C3111212DC for ; Thu, 10 Apr 2014 09:29:59 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id fp1sf10715875pdb.5 for ; Thu, 10 Apr 2014 02:29:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:dlp-filter:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe; bh=OJ75uPSKOeNPMIcXu+hiJfNMkZOW4Zhn4sSqW7FgTRM=; b=fB/eA9VTRe03xUMsIxCg9CUURw7YZTYl1GBNGlM1w3hTaR4C/S80Tm21EgCy+aFLhO Un7/imbJCERKHufYBI9YSaCd1mqF913HqLzXIDHGMwUxG4N4AFHLo2atuSmwkbuezUR/ TLkVBSWtMonX7UO0hmyd6767xBZcmassoC0AlnUw7gXO6izFhnc4yEJc6sqNDtwfEymC TWW+na+zYCKcs3x6AbVS74EsF8NeMH46mRWbUW1JD4xro99MU7madBKS7+l4GyGd511V YvD0qfR432LdYd3z4JhddVJlnwTPjfJXa9o/EOz5rsnqB9WkTtWlBZaLWuhQnTauWd09 ++Hw== X-Gm-Message-State: ALoCoQmCISHY7MV8tUdg4fFgXO7oXjdd1k/71iYrw8I/MrZqqz8KcKiOMFKi4M3PaPrxKjZwWuT6 X-Received: by 10.66.163.33 with SMTP id yf1mr7697052pab.19.1397122198957; Thu, 10 Apr 2014 02:29:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.103 with SMTP id v94ls1089328qge.0.gmail; Thu, 10 Apr 2014 02:29:58 -0700 (PDT) X-Received: by 10.220.159.4 with SMTP id h4mr13732914vcx.1.1397122198735; Thu, 10 Apr 2014 02:29:58 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id ca6si601927vcb.55.2014.04.10.02.29.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:29:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ik5so3268280vcb.0 for ; Thu, 10 Apr 2014 02:29:58 -0700 (PDT) X-Received: by 10.221.20.199 with SMTP id qp7mr234796vcb.24.1397122198654; Thu, 10 Apr 2014 02:29:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp43315vcb; Thu, 10 Apr 2014 02:29:58 -0700 (PDT) X-Received: by 10.66.193.202 with SMTP id hq10mr18310271pac.57.1397122198187; Thu, 10 Apr 2014 02:29:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dg5si1832704pbc.437.2014.04.10.02.29.57; Thu, 10 Apr 2014 02:29:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965523AbaDJJ3T (ORCPT + 27 others); Thu, 10 Apr 2014 05:29:19 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:64883 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935023AbaDJJ3N (ORCPT ); Thu, 10 Apr 2014 05:29:13 -0400 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 <0N3T008T16C1DK60@mailout3.samsung.com>; Thu, 10 Apr 2014 18:28:49 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 4A.91.10364.15466435; Thu, 10 Apr 2014 18:28:49 +0900 (KST) X-AuditID: cbfee690-b7f266d00000287c-f2-53466451e292 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 4A.14.29263.05466435; 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 Cc: kyungmin.park@samsung.com, cw00.choi@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, hyunhee.kim@samsung.com, yj44.cho@samsung.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 04/27] ARM: EXYNOS: Support secondary CPU boot of Exynos4212 Date: Thu, 10 Apr 2014 18:28:21 +0900 Message-id: <1397122124-15690-5-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+NgFvrHLMWR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My9pNzAu4+hi5OSQEDCR+HDpMTuELSZx4d56ti5GLg4hgemMEqvmr4Zympgkmn8dZgSp YhPQktj/4gYbiC0iECDx4/g7MJtZ4CajxLH3YV2MHBzCAj4Sxx4Ig4RZBFQllh3pYgKxeQVc JY43XGSFWCYn8WHPI7DFnAJuEp++t4LFhYBqmj7sY5vAyLuAkWEVo2hqQXJBcVJ6rqFecWJu cWleul5yfu4mRnBUPZPawbiyweIQowAHoxIP74FlrsFCrIllxZW5hxglOJiVRHivBbsFC/Gm JFZWpRblxxeV5qQWH2JMBrpqIrOUaHI+MOLzSuINjU3MjCyNzA0tjIzNSRNWEuc90GodKCSQ nliSmp2aWpBaBLOFiYNTqoGRhUniL6tOwtn9sxQ/r3Pjv9TjHnlcL8xqVt7T7X+6PhWcc3zt LP+2yG52Nl+q7tRtSWkhhXIuYQ+sVpc4NC1prNvjpbQ5q0qk9q9fkccXKzWFJqnF0nJb7uUb fPpT8fNetxqbQuEUxhNhGfkqkpL8Dn0NSe7fk93O2jIlPWmKm1O0r16/SImlOCPRUIu5qDgR AD1gKcXuAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: cw00.choi@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Kyungmin Park This patch fix the offset of CPU boot address and change parameter of smc call of SMC_CMD_CPU1BOOT command for Exynos4212. Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos/firmware.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c index 932129e..91a911d 100644 --- a/arch/arm/mach-exynos/firmware.c +++ b/arch/arm/mach-exynos/firmware.c @@ -18,6 +18,8 @@ #include +#include + #include "smc.h" static int exynos_do_idle(void) @@ -28,14 +30,22 @@ static int exynos_do_idle(void) static int exynos_cpu_boot(int cpu) { - exynos_smc(SMC_CMD_CPU1BOOT, cpu, 0, 0); + if (soc_is_exynos4212()) + exynos_smc(SMC_CMD_CPU1BOOT, 0, 0, 0); + else + exynos_smc(SMC_CMD_CPU1BOOT, cpu, 0, 0); return 0; } static int exynos_set_cpu_boot_addr(int cpu, unsigned long boot_addr) { - void __iomem *boot_reg = S5P_VA_SYSRAM_NS + 0x1c + 4*cpu; + void __iomem *boot_reg = S5P_VA_SYSRAM_NS + 0x1c; + if (soc_is_exynos4212()) + goto out; + else + boot_reg += 4*cpu; +out: __raw_writel(boot_addr, boot_reg); return 0; }