Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751165AbaDYBQW (ORCPT ); Thu, 24 Apr 2014 21:16:22 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:50877 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750773AbaDYBQS (ORCPT ); Thu, 24 Apr 2014 21:16:18 -0400 X-AuditID: cbfee690-b7fcd6d0000026e0-63-5359b76191b3 From: Chanwoo Choi To: kgene.kim@samsung.com, t.figa@samsung.com Cc: linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, ben-linux@fluff.org, arnd@arndb.de, olof@lixom.net, marc.zyngier@arm.com, thomas.abraham@linaro.org, kyungmin.park@samsung.com, cw00.choi@samsung.com, inki.dae@samsung.com, sw0312.kim@samsung.com, hyunhee.kim@samsung.com, yj44.cho@samsung.com, chanho61.park@samsung.com, sajjan.linux@gmail.com, tushar.behera@linaro.org, sachin.kamat@linaro.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCHv4 3/7] ARM: EXYNOS: Support secondary CPU boot of Exynos3250 Date: Fri, 25 Apr 2014 10:16:08 +0900 Message-id: <1398388572-30239-4-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1398388572-30239-1-git-send-email-cw00.choi@samsung.com> References: <1398388572-30239-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsWyRsSkQDdxe2SwwfFp3BZ/Jx1jt5i07gCT xeX92hbXvzxntZh/5ByrxecPLUDx+xNYLHoXXGWzONv0ht1i0+NrrBaXd81hs5hxfh+Txe3L vBZ/7/xjszh1/TObxck/vYwWTw5/ZLWYMfklm8X6Ga9ZLI7NWMJo0f53L5vF3p2TGR3EPNbM W8Po0dLcw+bx+9ckRo+/q14we+ycdZfd4861PWwem5fUe1w50cTq0bdl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KWvBXe6K3v2bWBsYT3J2MXJy SAiYSEza2MQGYYtJXLi3Hsjm4hASmM4oMaPlHiNIQkigiUli5zwWEJtNQEti/4sbYA0iAroS U2beYQWxmQVaWST6ttSA2MICPhKLH39lBrFZBFQl1rceYQexeQVcJRbefMAIsUxO4sOeR2Bx TgE3iZ27XjF1MXIA7XKVWPrHYwIj7wJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYwUng mdQOxpUNFocYBTgYlXh4P6hFBguxJpYVV+YeYpTgYFYS4VVeBRTiTUmsrEotyo8vKs1JLT7E mAx01ERmKdHkfGCCyiuJNzQ2MTOyNDI3tDAyNidNWEmc90CrdaCQQHpiSWp2ampBahHMFiYO TqkGxsJfrHeU73cYnDNpFj+6ykB70ep1bUpmvzUWuixl39Uv91TM5s1SqR+XjixUaGst/vlE 8dts2YJ5O1Lzd/+JXSxtJrRun3Gr+rROzsdJbpt/3/jzq2hT15HcD7fyF1bs+PZW+8McflGG tc1vNF4rnTXdJlG/qDhq4eJeppX/dXR/cMyf3Rbw5bcSS3FGoqEWc1FxIgC9cGzVRgMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fix the offset of CPU boot address and don't need to send smc call of SMC_CMD_CPU1BOOT command for secondary CPU boot because Exynos3250 removes WFE in secure mode. Signed-off-by: Chanwoo Choi Acked-by: Kyungmin Park --- arch/arm/mach-exynos/firmware.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c index aa01c42..386d01d 100644 --- a/arch/arm/mach-exynos/firmware.c +++ b/arch/arm/mach-exynos/firmware.c @@ -31,11 +31,17 @@ static int exynos_do_idle(void) static int exynos_cpu_boot(int cpu) { /* + * Exynos3250 doesn't need to send smc command for secondary CPU boot + * because Exynos3250 removes WFE in secure mode. + */ + if (soc_is_exynos3250()) + return 0; + /* * 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()) + else if (soc_is_exynos4212()) cpu = 0; exynos_smc(SMC_CMD_CPU1BOOT, cpu, 0, 0); @@ -46,7 +52,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()) boot_reg += 4*cpu; __raw_writel(boot_addr, boot_reg); -- 1.8.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/