From patchwork Wed Jan 14 05:33:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 5625851 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 03039C058D for ; Wed, 14 Jan 2015 05:36:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC88F20395 for ; Wed, 14 Jan 2015 05:36:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D8A122038D for ; Wed, 14 Jan 2015 05:36:02 +0000 (UTC) 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 1YBGac-0000aZ-01; Wed, 14 Jan 2015 05:33:58 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YBGaX-0000XX-SK for linux-arm-kernel@lists.infradead.org; Wed, 14 Jan 2015 05:33:55 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NI5000ORJFPFY70@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 14 Jan 2015 14:33:25 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.116]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id CA.33.19034.5AFF5B45; Wed, 14 Jan 2015 14:33:25 +0900 (KST) X-AuditID: cbfee691-f79b86d000004a5a-2e-54b5ffa54382 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 93.C5.09430.5AFF5B45; Wed, 14 Jan 2015 14:33:25 +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 <0NI500JGVJFPM330@mmp2.samsung.com>; Wed, 14 Jan 2015 14:33:25 +0900 (KST) From: Chanwoo Choi To: daniel.lezcano@linaro.org, tglx@linutronix.de Subject: [RESEND PATCH v3] clocksource: exynos_mct: Add the support for Exynos 64bit SoC Date: Wed, 14 Jan 2015 14:33:23 +0900 Message-id: <1421213603-5020-1-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.5.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsWyRsSkRHfp/60hBhsuylhc//Kc1WLeZ1mL SfcnsFj0LrjKZtH/+DWzxabH11gtLu+aw2Yx4/w+Joul1y8yWWzeNJXZgctjzbw1jB6bVnWy edy5tofN4925c+wem5fUe/RtWcXo8XmTXAB7FJdNSmpOZllqkb5dAlfGy7O3WAsOCVTs27eN sYHxK28XIyeHhICJxKJtJ5kgbDGJC/fWs3UxcnEICSxllFh+9i0LTNG39W1QiemMEh8W/2eB cJqYJLZefc8GUsUmoCWx/8UNMFtEwFBiz4oOZpAiZoHvjBLnX/xjBUkIC0RJbJt0hBHEZhFQ lXhzax1YnFfARWLHnX/sEOsUJJYtn8kK0iwhsIhd4sib6WwQDQIS3yYfAlrNAZSQldh0gBmi XlLi4IobLBMYBRcwMqxiFE0tSC4oTkovMtUrTswtLs1L10vOz93ECAz00/+eTdzBeP+A9SFG AQ5GJR5ehyNbQ4RYE8uKK3MPMZoCbZjILCWanA+Mp7ySeENjMyMLUxNTYyNzSzMlcV4d6Z/B QgLp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WLEtM+Q2HlbkSS3FGoqEWc1FxIgAymQOX uQIAAA== 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-20150113_213354_052815_FAB9C2F2 X-CRM114-Status: GOOD ( 11.63 ) X-Spam-Score: -5.0 (-----) Cc: Mark Rutland , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, inki.dae@samsung.com, cw00.choi@samsung.com, kgene@kernel.org, Kukjin Kim , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the support for Exynos 64bit SoC. The delay_timer is only used for Exynos 32bit SoC. Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Kukjin Kim Cc: Mark Rutland Signed-off-by: Chanwoo Choi --- This patch set is tested on 64-bit Exynos SoC. I send only this patch from following patchst[1]. [1] https://lkml.org/lkml/2014/12/2/134 Changes from v2: - None Changes from v1: - Use CONFIG_ARM instead of CONFIG_ARM64 drivers/clocksource/Kconfig | 1 - drivers/clocksource/exynos_mct.c | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index fc01ec2..be38119 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -135,7 +135,6 @@ config CLKSRC_METAG_GENERIC config CLKSRC_EXYNOS_MCT def_bool y if ARCH_EXYNOS - depends on !ARM64 help Support for Multi Core Timer controller on Exynos SoCs. diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index 9403061..b840ea1 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -223,6 +223,7 @@ static u64 notrace exynos4_read_sched_clock(void) return exynos4_read_count_32(); } +#if defined(CONFIG_ARM) static struct delay_timer exynos4_delay_timer; static cycles_t exynos4_read_current_timer(void) @@ -231,14 +232,17 @@ static cycles_t exynos4_read_current_timer(void) "cycles_t needs to move to 32-bit for ARM64 usage"); return exynos4_read_count_32(); } +#endif static void __init exynos4_clocksource_init(void) { exynos4_mct_frc_start(); +#if defined(CONFIG_ARM) exynos4_delay_timer.read_current_timer = &exynos4_read_current_timer; exynos4_delay_timer.freq = clk_rate; register_current_timer_delay(&exynos4_delay_timer); +#endif if (clocksource_register_hz(&mct_frc, clk_rate)) panic("%s: can't register clocksource\n", mct_frc.name);