Message ID | 1397527192-21988-5-git-send-email-cw00.choi@samsung.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDL3F4G2ZAIBBP5FWKNAKGQEXEIYRMQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BD5552036A for <linaro@patches.linaro.org>; Tue, 15 Apr 2014 02:00:32 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id eb12sf48507805oac.7 for <linaro@patches.linaro.org>; Mon, 14 Apr 2014 19:00:32 -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=gDX3GwtHwxIxMV+5IWorAtdfv9PQfe0G8znvtUZIxdQ=; b=TufpGsM9nCQRIJCm5hZUbbBOHYocU+9RBaXyT7hQO1jN9mJEg3MeyLeuFUy6HlDVTz AL+kKtQyqpisYn4/+HLjQLVo8X7w0gHh5kSWDtNxo9hW800QQMcROUEEAwmiPImAReNX 2kSg81cFLDDgixTDxGExi226O7gvwF53sbA7tyAQt/q+olM1bT9yrKU6ILT7bYPZdFyX KA39KGB2zL0qm4/JkkNmA0PHmCyyWygqPjiEIkz+GNYpBcDMgoIcNbBJck9oidem+rV6 6vd3WXVLiff4zsvLu/yZSb6Q+j6Y5Dkze2zLv0rCCwFQXM4cd5zGwt2PUfO3X7O1xTTD o+RQ== X-Gm-Message-State: ALoCoQl8mv/XSVDHP6Zyr9dueFTHQDb1tnY6sWVhY5kAT+9IKpUfx+W3LkgVJA/d9T8UFEG+ifxr X-Received: by 10.182.216.200 with SMTP id os8mr22761981obc.0.1397527231945; Mon, 14 Apr 2014 19:00:31 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.39.100 with SMTP id u91ls2807356qgu.74.gmail; Mon, 14 Apr 2014 19:00:31 -0700 (PDT) X-Received: by 10.52.191.100 with SMTP id gx4mr33073183vdc.4.1397527231845; Mon, 14 Apr 2014 19:00:31 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id sk2si3112055vcb.90.2014.04.14.19.00.31 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Apr 2014 19:00:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.178 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.178; Received: by mail-vc0-f178.google.com with SMTP id im17so8351074vcb.37 for <patchwork-forward@linaro.org>; Mon, 14 Apr 2014 19:00:31 -0700 (PDT) X-Received: by 10.220.92.135 with SMTP id r7mr39623272vcm.11.1397527231744; Mon, 14 Apr 2014 19:00:31 -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 ib8csp193512vcb; Mon, 14 Apr 2014 19:00:30 -0700 (PDT) X-Received: by 10.66.230.193 with SMTP id ta1mr25943193pac.29.1397527230043; Mon, 14 Apr 2014 19:00:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pu9si9824261pbb.319.2014.04.14.19.00.29; Mon, 14 Apr 2014 19:00:29 -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 S1754182AbaDOCAB (ORCPT <rfc822;markus.mayer@linaro.org> + 26 others); Mon, 14 Apr 2014 22:00:01 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:20238 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753308AbaDOB7z (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 14 Apr 2014 21:59:55 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4100GTSUVU3270@mailout4.samsung.com>; Tue, 15 Apr 2014 10:59:54 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 2E.D0.12635.9929C435; Tue, 15 Apr 2014 10:59:54 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-c3-534c92999f6e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 01.4E.29263.9929C435; Tue, 15 Apr 2014 10:59:53 +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 <0N4100LE6UVPW9A0@mmp1.samsung.com>; Tue, 15 Apr 2014 10:59:53 +0900 (KST) From: Chanwoo Choi <cw00.choi@samsung.com> To: linux-kernel@vger.kernel.org Cc: linux@arm.linux.org.uk, ben-linux@fluff.org, kgene.kim@samsung.com, t.figa@samsung.com, thomas.abraham@linaro.org, kyungmin.park@samsung.com, cw00.choi@samsung.com, sw0312.kim@samsung.com, hyunhee.kim@samsung.com, yj44.cho@samsung.com, chanho61.park@samsung.com, arnd@arndb.de, olof@lixom.net, marc.zyngier@arm.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCHv2 4/8] ARM: EXYNOS: Support secondary CPU boot of Exynos4212 Date: Tue, 15 Apr 2014 10:59:48 +0900 Message-id: <1397527192-21988-5-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1397527192-21988-1-git-send-email-cw00.choi@samsung.com> References: <1397527192-21988-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRmVeSWpSXmKPExsWyRsSkRHfWJJ9gg7ZFLBZ/Jx1jt5i07gCT xeX92hbXvzxntZh/5ByrxecPLewWvQuuslmcbXrDbrHp8TVWi8u75rBZzDi/j8ni9mVei793 /rFZnLr+GSg0+SWbxfoZr1ksjs1Ywmixd+dkRgchjzXz1jB6tDT3sHn8/jWJ0ePvqhfMHneu 7WHz2Lyk3uPKiSZWj74tqxg9Pm+SC+CM4rJJSc3JLEst0rdL4MpobFrIWLCWu+JBxyTmBsaF nF2MHBwSAiYSmzpzuxg5gUwxiQv31rOB2EICSxklVl1whIibSEz5e4K9i5ELKL6IUWLaqVvM EE4Tk8TpfUvYQarYBLQk9r+4AdYtIqAgsbn3GStIEbPAWmaJi5Ma2UC2CQv4SEycxANSwyKg KvH/2FomkDCvgKvE/PkuEMvkJD7seQQ2klPATWLv/b/MEAe5SqzfP5sJZKSEQCeHxParS1kh 5ghIfJt8iAXiGVmJTQeYIeZIShxccYNlAqPwAkaGVYyiqQXJBcVJ6UWGesWJucWleel6yfm5 mxiBMXf637PeHYy3D1gfYkwGGjeRWUo0OR8Ys3kl8YbGZkYWpiamxkbmlmakCSuJ8yY9TAoS EkhPLEnNTk0tSC2KLyrNSS0+xMjEwSnVwCiU+i5Z90uPgff7o/NnpeUmmk1hYXqp2T6rtiV8 /ymWjxOkXpnpNegxnGGflLx1g2T16U9LHP7UHQ1h//4+dqP5SQ/XOzsj7SJuFUT2m3zidvi1 77cbe4zE7VVeMx6KVpU59PKJaLR4Cr14evrK09zwJ5e2dn29tDTh+68y2+1u7Dus1C/FHlVi Kc5INNRiLipOBAD75coYzwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNKsWRmVeSWpSXmKPExsVy+t9jAd2Zk3yCDXbcMLP4O+kYu8WkdQeY LC7v17a4/uU5q8X8I+dYLT5/aGG36F1wlc3ibNMbdotNj6+xWlzeNYfNYsb5fUwWty/zWvy9 84/N4tT1z0ChyS/ZLNbPeM1icWzGEkaLvTsnMzoIeayZt4bRo6W5h83j969JjB5/V71g9rhz bQ+bx+Yl9R5XTjSxevRtWcXo8XmTXABnVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGh rqGlhbmSQl5ibqqtkotPgK5bZg7QP0oKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqM DNBAwhrGjMamhYwFa7krHnRMYm5gXMjZxcjJISFgIjHl7wl2CFtM4sK99WxdjFwcQgKLGCWm nbrFDOE0MUmc3rcErIpNQEti/4sbbCC2iICCxObeZ6wgRcwCa5klLk5qBEpwcAgL+EhMnMQD UsMioCrx/9haJpAwr4CrxPz5LhDL5CQ+7HkENpJTwE1i7/2/zCC2EFDJ+v2zmSYw8i5gZFjF KJpakFxQnJSea6hXnJhbXJqXrpecn7uJERzVz6R2MK5ssDjEKMDBqMTD6zHBJ1iINbGsuDL3 EKMEB7OSCO/rZKAQb0piZVVqUX58UWlOavEhxmSgoyYyS4km5wMTTl5JvKGxiZmRpZG5oYWR sTlpwkrivAdarQOFBNITS1KzU1MLUotgtjBxcEo1MOarfzCd/pL/sM3sc6Zp9Y3PZn2KtlG2 2nvJq4TlnOGDBoUAsd+TGd48+3Cw8sZE9q2KKwL/rZFteXVgyf0Jm5v/z7whLr3n8LXSDTPn B1v2mgYfvTRzy/4JO3b+kfhq/arepVhl78mqq+IO68xedTq9mPDhl+nSy9HiD9SvpIotvbvr +POObaEMSizFGYmGWsxFxYkAJfz2fS4DAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.178 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: <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-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
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;