Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965703AbaDJJxl (ORCPT ); Thu, 10 Apr 2014 05:53:41 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35111 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934403AbaDJJ2w (ORCPT ); Thu, 10 Apr 2014 05:28:52 -0400 X-AuditID: cbfee68f-b7f156d00000276c-d5-534664514773 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 06/27] ARM: EXYNOS:: Enter a15 lowpower mode for Exynos3250 based on Cortex-a7 Date: Thu, 10 Apr 2014 18:28:23 +0900 Message-id: <1397122124-15690-7-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+NgFmpgkeLIzCtJLcpLzFFi42JZI2JSqBuY4hZssHaamMX1L89ZLT5/aGG3 mHR/AotF74KrbBZnm96wW2x6fI3V4vKuOWwWM87vY7KYMfklm8X6Ga9ZLPbunMzowO2xeUm9 R9+WVYwenzfJBTBHcdmkpOZklqUW6dslcGW0/TvBXvCaq+LV7juMDYxXOboYOTkkBEwkmo4t ZYewxSQu3FvP1sXIxSEksJRRYtuz72wwRa+/v2CESExnlGjeuJYdwmlikmj+dZgRpIpNQEti /4sbYB0iAgESP46/A7OZBW4yShx7HwZiCwskSDybPgUsziKgKjHl/kIWEJtXwFXi5On3UNvk JD7seQR2EqeAm8Sn762sILYQUE3Th31g50kIrGKXODb1DDPEIAGJb5MPAQ3iAErIS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swkRyDtx4e7uL8Fhd6zeRxrf+3771oOgKHYBmfTwoM23 rI6kb2868CU3V/BOZ7HkkVslbc5vWkQ8JV4K5eh0rNJ23pA393KlZMTV54+i6lzbdqyw3Cle +S3e+I5moqdtueuWXWnyMefWiu+a/pz/yB3Wbw8uy6S+VnGqrDB5un5SKUudEktxRqKhFnNR cSIAjsp1v/ACAAA= 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 decide proper lowpower mode of either a15 or a9 according to own ID from Main ID register. Signed-off-by: Chanwoo Choi Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos/hotplug.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c index 5eead53..36d3db6 100644 --- a/arch/arm/mach-exynos/hotplug.c +++ b/arch/arm/mach-exynos/hotplug.c @@ -135,13 +135,20 @@ void __ref exynos_cpu_die(unsigned int cpu) int primary_part = 0; /* - * we're ready for shutdown now, so do it. - * Exynos4 is A9 based while Exynos5 is A15; check the CPU part + * we're ready for shutdown now, so do it. Exynos4 is A9 based + * while Exynos5 is A15/Exynos7 is A7; check the CPU part * number by reading the Main ID register and then perform the * appropriate sequence for entering low power. */ asm("mrc p15, 0, %0, c0, c0, 0" : "=r"(primary_part) : : "cc"); - if ((primary_part & 0xfff0) == 0xc0f0) + + /* + * Main ID register of Cortex series + * - Cortex-a7 : 0x410F_C07x + * - Cortex-a15 : 0x410F_C0Fx + */ + primary_part = primary_part & 0xfff0; + if (primary_part == 0xc0f0 || primary_part == 0xc070) cpu_enter_lowpower_a15(); else cpu_enter_lowpower_a9(); -- 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/