Message ID | 1397783728-6193-3-git-send-email-cw00.choi@samsung.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDL3F4G2ZAIBBPH2YGNAKGQEZQC7Z5A@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E66322188F for <linaro@patches.linaro.org>; Fri, 18 Apr 2014 01:17:48 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf6089920iec.10 for <linaro@patches.linaro.org>; Thu, 17 Apr 2014 18:17:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:dlp-filter:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=tJe3K/e4idi7rPILh4h1tzMcz+VYh30+QOZruOOCjFI=; b=US6YEvbI2sL2rlpEVknuj0ykbBOy7gzpHKtfUSVKV9oLJgj+XG3Hy/I2+cSsbS5DPx AtOmdOtxTaPeKZ/PBvLcfpJ8qCnM1K1h7vntaWfQEd912534jXR0tCh/mCfyvFATmRUH WIMgkH9ZOMWAfDNl0o9ITKwKSTMAFAB7OX6jK30Tbuz/BbgT6CEaAY1WU+xSZwFTn3xD 6+h1NdFAg13qcA67tD3p7kyvIEobPbq7U1wo6oYC1t5M06PQsSiQZmtc/0dEgw+rN+YF UmBaviCmdraOOC/oJPKEV+fLC7BaXIkwENiUumeiBZWDoTJDfnPOGhNVd7q2a/I6WZQO Q85w== X-Gm-Message-State: ALoCoQk4f+agIzEdpRyYgXUA0J3oBTR7V0fgeFXFVj8zxLQTR8qfTZBNTCH+i3bkfZWbvqhAWR5n X-Received: by 10.182.81.7 with SMTP id v7mr9159065obx.28.1397783868024; Thu, 17 Apr 2014 18:17:48 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.131 with SMTP id z3ls1382754qgd.59.gmail; Thu, 17 Apr 2014 18:17:47 -0700 (PDT) X-Received: by 10.52.142.10 with SMTP id rs10mr9498557vdb.3.1397783867896; Thu, 17 Apr 2014 18:17:47 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id ck5si3695047vdd.127.2014.04.17.18.17.47 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Apr 2014 18:17:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 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.175; Received: by mail-ve0-f175.google.com with SMTP id oz11so1673902veb.20 for <patchwork-forward@linaro.org>; Thu, 17 Apr 2014 18:17:47 -0700 (PDT) X-Received: by 10.52.23.97 with SMTP id l1mr9589807vdf.11.1397783867661; Thu, 17 Apr 2014 18:17:47 -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 ib8csp76799vcb; Thu, 17 Apr 2014 18:17:47 -0700 (PDT) X-Received: by 10.140.17.81 with SMTP id 75mr21288400qgc.35.1397783867239; Thu, 17 Apr 2014 18:17:47 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id h5si11286601qas.50.2014.04.17.18.17.47 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Apr 2014 18:17:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; 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 1WaxPQ-0006YE-2M; Fri, 18 Apr 2014 01:16:04 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WaxPF-0006UI-1C for linux-arm-kernel@lists.infradead.org; Fri, 18 Apr 2014 01:15:54 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N47003FYCTR4690@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 18 Apr 2014 10:15:27 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 83.03.14803.FAC70535; Fri, 18 Apr 2014 10:15:27 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-54-53507cafcf6b Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 3D.A3.28157.FAC70535; Fri, 18 Apr 2014 10:15:27 +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 <0N4700C5CCTPZG70@mmp1.samsung.com>; Fri, 18 Apr 2014 10:15:27 +0900 (KST) From: Chanwoo Choi <cw00.choi@samsung.com> To: linux-kernel@vger.kernel.org Subject: [PATCHv3 2/7] ARM: EXYNOS: Support secondary CPU boot of Exynos4212 Date: Fri, 18 Apr 2014 10:15:23 +0900 Message-id: <1397783728-6193-3-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397783728-6193-1-git-send-email-cw00.choi@samsung.com> References: <1397783728-6193-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMIsWRmVeSWpSXmKPExsWyRsSkWHd9TUCwwb/ZGhZ/Jx1jt5i07gCT xeX92hbXvzxntZh/5ByrxecPLewWvQuuslmcbXrDbrHp8TVWi8u75rBZzDi/j8ni9mVei793 /rFZnLr+mc3i5J9eRosnhz+yWsyY/JLNYv2M1ywWx2YsYbRo/7uXzWLvzsmMDqIea+atYfRo ae5h8/j9axKjx99VL5g9ds66y+5x59oeNo/NS+o9rpxoYvXo27KK0ePzJrkArigum5TUnMyy 1CJ9uwSujMamhYwFa7krHnRMYm5gXMjZxcjJISFgInHoyFdmCFtM4sK99WxdjFwcQgJLGSUu 9F5igSl6/aSdBSKxiFHiyOXVUE4Tk8S5o3OYQKrYBLQk9r+4wQZiiwgoSGzufcYKUsQs8ItZ 4ufzZnaQhLCAj0Tf89NA3RwcLAKqEj3/9UHCvAIuEq23r0KdISfxYc8jsHJOAVeJ84+PgF0h BFTz8Pt0sMUSAis5JHqaT4IVsQgISHybfAhspoSArMSmA1BzJCUOrrjBMoFReAEjwypG0dSC 5ILipPQiU73ixNzi0rx0veT83E2MwAg9/e/ZxB2M9w9YH2JMBho3kVlKNDkfGOF5JfGGxmZG FqYmpsZG5pZmpAkrifOmP0oKEhJITyxJzU5NLUgtii8qzUktPsTIxMEp1cBoHCY+PS7w/byb K34Kf/zrbKCZkpvNO2PlrXUnTa5MWfvWft9D+X61bf8XLTF+86lOMrZ/NW/6kS0qNq9jo30l o1e/Ttzi4fR7jt2GQKFWJs4fW0Q3zLl6uf3wBR6N5dsTjkvPDv8WkRPaflP0xAeuSJ97Mevb zmfPffb/uJjKkg9TmFa+zb5dq8RSnJFoqMVcVJwIAFNqCGTmAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrAKsWRmVeSWpSXmKPExsVy+t9jAd31NQHBBkefyVj8nXSM3WLSugNM Fpf3a1tc//Kc1WL+kXOsFp8/tLBb9C64ymZxtukNu8Wmx9dYLS7vmsNmMeP8PiaL25d5Lf7e +cdmcer6ZzaLk396GS2eHP7IajFj8ks2i/UzXrNYHJuxhNGi/e9eNou9OyczOoh6rJm3htGj pbmHzeP3r0mMHn9XvWD22DnrLrvHnWt72Dw2L6n3uHKiidWjb8sqRo/Pm+QCuKIaGG0yUhNT UosUUvOS81My89JtlbyD453jTc0MDHUNLS3MlRTyEnNTbZVcfAJ03TJzgH5UUihLzCkFCgUk Fhcr6dthmhAa4qZrAdMYoesbEgTXY2SABhLWMGY0Ni1kLFjLXfGgYxJzA+NCzi5GTg4JAROJ 10/aWSBsMYkL99azdTFycQgJLGKUOHJ5NQuE08Qkce7oHCaQKjYBLYn9L26wgdgiAgoSm3uf sYIUMQv8Ypb4+byZHSQhLOAj0ff8NFA3BweLgKpEz399kDCvgItE6+2rzBDb5CQ+7HkEVs4p 4Cpx/vERsCuEgGoefp/OMoGRdwEjwypG0dSC5ILipPRcI73ixNzi0rx0veT83E2M4Ph/Jr2D cVWDxSFGAQ5GJR7eC1/9g4VYE8uKK3MPMUpwMCuJ8CqXBgQL8aYkVlalFuXHF5XmpBYfYkwG Omois5Rocj4wNeWVxBsam5gZWRqZG1oYGZuTJqwkznuw1TpQSCA9sSQ1OzW1ILUIZgsTB6dU A6Owp6jsuzb78w/CxOL4Hadvf7q2iCc1/vKBpVY7eP5LX3re/nO+itVFptn9S1yEHK7y7Thg J9Dx7/6UifohwT3HTLgOtt8NSK9PdOdXeWiwMvlO8eb3Pm5RT9fPmjNNm02n6t7J2beuZTpc LNry/mPD/1nHk9SrfryyWHO9pWJz/u2VRx+6xjAosRRnJBpqMRcVJwIAjlHLr0MDAAA= 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-20140417_181553_223421_BBB91147 X-CRM114-Status: GOOD ( 11.32 ) X-Spam-Score: -5.7 (-----) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-5.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.33 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain Cc: sajjan.linux@gmail.com, 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, sachin.kamat@linaro.org, linux-arm-kernel@lists.infradead.org, tushar.behera@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.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.175 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c index 932129e..aa01c42 100644 --- a/arch/arm/mach-exynos/firmware.c +++ b/arch/arm/mach-exynos/firmware.c @@ -18,6 +18,8 @@ #include <mach/map.h> +#include <plat/cpu.h> + #include "smc.h" static int exynos_do_idle(void) @@ -28,13 +30,24 @@ static int exynos_do_idle(void) static int exynos_cpu_boot(int cpu) { + /* + * 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()) + cpu = 0; + 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()) + boot_reg += 4*cpu; __raw_writel(boot_addr, boot_reg); return 0;