From patchwork Tue Aug 16 06:27:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9282675 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 62BB760574 for ; Tue, 16 Aug 2016 06:30:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 513E928B7C for ; Tue, 16 Aug 2016 06:30:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4546A28B99; Tue, 16 Aug 2016 06:30:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CD3FE28B7C for ; Tue, 16 Aug 2016 06:30:06 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bZXrE-0005gj-LJ; Tue, 16 Aug 2016 06:28:16 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bZXr7-0005dy-20 for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2016 06:28:10 +0000 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OBZ01FNSOM98B60@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Tue, 16 Aug 2016 15:27:45 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.112]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id B3.E8.31386.162B2B75; Tue, 16 Aug 2016 15:27:45 +0900 (KST) X-AuditID: cbfee68d-f79286d000007a9a-e4-57b2b26169a7 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 47.7B.07740.062B2B75; Mon, 15 Aug 2016 23:27:45 -0700 (MST) Received: from chan.10.32.193.11 ([10.113.62.212]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OBZ003A3OM8Q470@mmp2.samsung.com>; Tue, 16 Aug 2016 15:27:44 +0900 (KST) From: Chanwoo Choi To: k.kozlowski@samsung.com, kgene@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] clocksource: exynos_mct: Add the support for Exynos 64bit SoC Date: Tue, 16 Aug 2016 15:27:17 +0900 Message-id: <1471328843-26653-2-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1471328843-26653-1-git-send-email-cw00.choi@samsung.com> References: <1471328843-26653-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsWyRsSkQDdx06Zwg/5PQha31p1jtTj9aRu7 xftlPYwWE29cYbG4/uU5q8W8z7IW848AJZfO6GO12PX3PqPFjptf2Cwm3Z/AYrGj4QirxY1f bawWnWefMFu8uHeRxeL1C0OL/sevmS3On9/AbrHp8TVWi8u75rBZzDi/j8li7ZG77BZLr19k smjde4Td4v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26r5B0c7xxvamZgqGtoaWGupJCXmJtq q+TiE6DrlpkD9LeSQlliTilQKCCxuFhJ3w7ThNAQN10LmMYIXd+QILgeIwM0kLCGMePPvCPM BQv4K7ZMW83YwPiVp4uRk0NCwETi1oodbBC2mMSFe+uBbC4OIYFZjBJvrp1hhHC+MErsX3eC FaSKTUBLYv+LG2BVIgJ9TBLLTp1lAnGYBa4xS0w49QSsSlggROLW3v1A7RwcLAKqEh9XxIGE eQVcJTqWv4FaJyfxYc8jdhCbU8BN4seixSwgthBQzakz89gnMPIuYGRYxSiRWpBcUJyUnmuU l1quV5yYW1yal66XnJ+7iRGcLp5J72A8vMv9EKMAB6MSD+8Jhk3hQqyJZcWVuYcYJTiYlUR4 XdYBhXhTEiurUovy44tKc1KLDzGaAt01kVlKNDkfmMrySuINjU3MjCyNzA0tjIzNlcR5H/9f FyYkkJ5YkpqdmlqQWgTTx8TBKdXAyGR03PIGw3IGly2z+2syrxjeEO36dz3H/uszv0LB6nX+ m4S1lwScPrOhPf38pD1igvcV6ji++DX/nDix+/51/zK2NZEhy1RbfZZd1Ft1dvLqNT45FYKT tj0SXsTCmHjhwfSpXz3rPqgHxihnZl56wZ2Y6imx3XvJJcnS69lujKtKLIWrDF9rKrEUZyQa ajEXFScCAGLjawctAwAA 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-20160815_232809_309313_56E331C0 X-CRM114-Status: GOOD ( 14.58 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: inki.dae@samsung.com, jonghwa3.lee@samsung.com, s.nawrocki@samsung.com, jy0922.shim@samsung.com, a.hajda@samsung.com, jaewon02.kim@samsung.com, Daniel Lezcano , sw0312.kim@samsung.com, krzk@kernel.org, jh80.chung@samsung.com, cw00.choi@samsung.com, human.hwang@samsung.com, chanwoo@kernel.org, ingi2.kim@samsung.com, m.szyprowski@samsung.com, Thomas Gleixner , beomho.seo@samsung.com, ideal.song@samsung.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the support for Exynos 64bit SoC. The delay_timer is only used for 32bit SoC. Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Kukjin Kim Cc: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi --- drivers/clocksource/Kconfig | 2 +- drivers/clocksource/exynos_mct.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig index 567788664723..ec443c318c77 100644 --- a/drivers/clocksource/Kconfig +++ b/drivers/clocksource/Kconfig @@ -351,7 +351,7 @@ config CLKSRC_METAG_GENERIC config CLKSRC_EXYNOS_MCT bool "Exynos multi core timer driver" if COMPILE_TEST - depends on ARM + depends on ARM || 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 41840d02c331..8f3488b80896 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 int __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);