From patchwork Thu Apr 10 09:37:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 28132 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f198.google.com (mail-ig0-f198.google.com [209.85.213.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 74E7B20671 for ; Thu, 10 Apr 2014 09:41:55 +0000 (UTC) Received: by mail-ig0-f198.google.com with SMTP id ur14sf9882051igb.1 for ; Thu, 10 Apr 2014 02:41:54 -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=ArVBVOZd7QN1t4JYL+bzvctmtanEb0KJ1LxJZYl2Q4fCZQIKtAqLp4wxrSgSmJKUso NJ+i2GtGkm7Ar9iXvkk0c6mIV3lraSeUw8fvsjHEmDzvn8+WNRuQCBlb2LjwQr+w7hfn l88ZEXfkeujy7X1KtDi/o1v6/TYt5CCrvsPruOwTlQ0I57w/UhZ3K224jVRnk2qckZV4 UzJWvybVSgixhm62AcZilNqEq/5Wi/UqBcayYClj8mksjy+ZSo3ZNYPw6eMMJBRE1UZp vgATHrER4+gS/uH0Sqw9FJL+56kMZ51VtB6+QY2QpvQof7wXu0NnmHgUfWNYTIzCDRUr FRyQ== X-Gm-Message-State: ALoCoQm7fIg3yeEQ8D6ZJ3hXpA5oj4m/FTu4LG2l7tS8FyHbSvXhaRpx1uxUChoR5t497rypVrsP X-Received: by 10.182.102.197 with SMTP id fq5mr7699339obb.8.1397122914800; Thu, 10 Apr 2014 02:41:54 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.50.197 with SMTP id s63ls1043487qga.39.gmail; Thu, 10 Apr 2014 02:41:54 -0700 (PDT) X-Received: by 10.58.181.170 with SMTP id dx10mr68629vec.25.1397122914597; Thu, 10 Apr 2014 02:41:54 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id tm8si603371vdc.80.2014.04.10.02.41.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Apr 2014 02:41:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id oy12so3108783veb.4 for ; Thu, 10 Apr 2014 02:41:54 -0700 (PDT) X-Received: by 10.221.29.137 with SMTP id ry9mr13712127vcb.6.1397122914509; Thu, 10 Apr 2014 02:41:54 -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 ib8csp44170vcb; Thu, 10 Apr 2014 02:41:54 -0700 (PDT) X-Received: by 10.66.148.230 with SMTP id tv6mr1379507pab.155.1397122913768; Thu, 10 Apr 2014 02:41:53 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si1873490paw.86.2014.04.10.02.41.53; Thu, 10 Apr 2014 02:41:53 -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 S965837AbaDJJlp (ORCPT + 27 others); Thu, 10 Apr 2014 05:41:45 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:37075 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965710AbaDJJh5 (ORCPT ); Thu, 10 Apr 2014 05:37:57 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3T000ES6R6FTA0@mailout2.samsung.com>; Thu, 10 Apr 2014 18:37:54 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id FF.48.09028.17666435; Thu, 10 Apr 2014 18:37:53 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-43-53466671b1b0 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 34.19.28157.17666435; Thu, 10 Apr 2014 18:37:53 +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:53 +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:37:15 +0900 Message-id: <1397122658-16013-5-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: H4sIAAAA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hYwjRG6viFBcD1GBmggYQ1jxrTLjawF E7kqZl7SbmBcxtHFyMkhIWAi8W/xDhYIW0ziwr31bCC2kMB0RomJb0q6GLmA7CYmiQOdl8CK 2AS0JPa/uAFWJCIQIPHj+Dswm1ngJqPEsfdhXYwcHMICPhLHHgiDhFkEVCVOLDnCDmLzCrhK bD91lx1il5zEhz2PwGxOATeJmYtOQu11leh5dJF5AiPvAkaGVYyiqQXJBcVJ6blGesWJucWl eel6yfm5mxjBMfVMegfjqgaLQ4wCHIxKPLwHlrkGC7EmlhVX5h5ilOBgVhLhvRbsFizEm5JY WZValB9fVJqTWnyIMRnoqonMUqLJ+cB4zyuJNzQ2MTOyNDI3tDAyNidNWEmc92CrdaCQQHpi SWp2ampBahHMFiYOTqkGxqBlmkVtZn7p07fv3vnf94GXitdyNpmsuqNOP4R8kyND/Y3/+f1v KbY0v2dwMGV63obPB3/7x3/cL1qeyxkq/St5teM1TYcLvodYLnp7+lrEVTHGRxrELNM2+ylz 4/hd57MFc6ZdnCQll/TLZefRd4Y6ZazvDxSanNTT6p45f9OveKkAVsMfSizFGYmGWsxFxYkA 7f8MEO0CAAA= 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.128.173 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; }