All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chanwoo Choi <cw00.choi@samsung.com>
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
Cc: krzk@kernel.org, cw00.choi@samsung.com, jh80.chung@samsung.com,
	sw0312.kim@samsung.com, jy0922.shim@samsung.com,
	inki.dae@samsung.com, jonghwa3.lee@samsung.com,
	beomho.seo@samsung.com, jaewon02.kim@samsung.com,
	human.hwang@samsung.com, ideal.song@samsung.com,
	ingi2.kim@samsung.com, m.szyprowski@samsung.com,
	a.hajda@samsung.com, s.nawrocki@samsung.com, chanwoo@kernel.org,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: [PATCH v2 1/7] clocksource: exynos_mct: Add the support for ARM64
Date: Wed, 24 Aug 2016 22:49:05 +0900	[thread overview]
Message-ID: <1472046551-703-2-git-send-email-cw00.choi@samsung.com> (raw)
In-Reply-To: <1472046551-703-1-git-send-email-cw00.choi@samsung.com>

This patch adds the support for ARM 64bit. The delay_timer is only supported
on ARM 32bit.

Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
 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);
-- 
1.9.1

WARNING: multiple messages have this Message-ID (diff)
From: Chanwoo Choi <cw00.choi@samsung.com>
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
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 <daniel.lezcano@linaro.org>,
	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 <tglx@linutronix.de>,
	beomho.seo@samsung.com, ideal.song@samsung.com
Subject: [PATCH v2 1/7] clocksource: exynos_mct: Add the support for ARM64
Date: Wed, 24 Aug 2016 22:49:05 +0900	[thread overview]
Message-ID: <1472046551-703-2-git-send-email-cw00.choi@samsung.com> (raw)
In-Reply-To: <1472046551-703-1-git-send-email-cw00.choi@samsung.com>

This patch adds the support for ARM 64bit. The delay_timer is only supported
on ARM 32bit.

Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
 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);
-- 
1.9.1

WARNING: multiple messages have this Message-ID (diff)
From: cw00.choi@samsung.com (Chanwoo Choi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/7] clocksource: exynos_mct: Add the support for ARM64
Date: Wed, 24 Aug 2016 22:49:05 +0900	[thread overview]
Message-ID: <1472046551-703-2-git-send-email-cw00.choi@samsung.com> (raw)
In-Reply-To: <1472046551-703-1-git-send-email-cw00.choi@samsung.com>

This patch adds the support for ARM 64bit. The delay_timer is only supported
on ARM 32bit.

Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Kukjin Kim <kgene@kernel.org>
Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
---
 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);
-- 
1.9.1

  reply	other threads:[~2016-08-24 13:51 UTC|newest]

Thread overview: 88+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-24 13:49 [PATCH v2 0/7] arm64: dts: Add the dts file for Exynos5433 and TM/TM2E board Chanwoo Choi
2016-08-24 13:49 ` Chanwoo Choi
2016-08-24 13:49 ` Chanwoo Choi
2016-08-24 13:49 ` Chanwoo Choi [this message]
2016-08-24 13:49   ` [PATCH v2 1/7] clocksource: exynos_mct: Add the support for ARM64 Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-26 16:02   ` Krzysztof Kozlowski
2016-08-26 16:02     ` Krzysztof Kozlowski
2016-09-08 11:04   ` Daniel Lezcano
2016-09-08 11:04     ` Daniel Lezcano
     [not found]     ` <CGME20160916111052eucas1p1fb19531ab7b3e53f6fdeb4fa0e8a5449@eucas1p1.samsung.com>
2016-09-16 11:10       ` Krzysztof Kozlowski
2016-09-16 11:10         ` Krzysztof Kozlowski
2016-08-24 13:49 ` [PATCH v2 2/7] Documentation: bindings: Add Exynos5433 PMU compatible Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-24 13:49 ` [PATCH v2 3/7] pinctrl: samsung: Add the support the multiple IORESOURCE_MEM for one pin-bank Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-25 14:30   ` Tomasz Figa
2016-08-25 14:30     ` Tomasz Figa
2016-08-25 14:30     ` Tomasz Figa
2016-08-25 14:41     ` Tomasz Figa
2016-08-25 14:41       ` Tomasz Figa
2016-08-25 14:41       ` Tomasz Figa
2016-09-05  8:08       ` Chanwoo Choi
2016-09-05  8:08         ` Chanwoo Choi
2016-09-05  8:08         ` Chanwoo Choi
     [not found]         ` <57CD27FC.2020201-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2016-09-20  1:03           ` Tomasz Figa
2016-09-20  1:03             ` Tomasz Figa
2016-09-20  1:03             ` Tomasz Figa
2016-08-24 13:49 ` [PATCH v2 4/7] pinctrl: samsung: Add GPF support for Exynos5433 Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-25 14:34   ` Tomasz Figa
2016-08-25 14:34     ` Tomasz Figa
2016-08-25 14:34     ` Tomasz Figa
2016-08-24 13:49 ` [PATCH v2 5/7] arm64: dts: exynos: Add dts files for Samsung Exynos5433 64bit SoC Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-26 16:14   ` Krzysztof Kozlowski
2016-08-26 16:14     ` Krzysztof Kozlowski
2016-09-02  9:54     ` Chanwoo Choi
2016-09-02  9:54       ` Chanwoo Choi
2016-08-26 17:49   ` Javier Martinez Canillas
2016-08-26 17:49     ` Javier Martinez Canillas
2016-08-26 17:49     ` Javier Martinez Canillas
2016-09-02 10:59     ` Chanwoo Choi
2016-09-02 10:59       ` Chanwoo Choi
2016-09-07  7:55       ` Javier Martinez Canillas
2016-09-07  7:55         ` Javier Martinez Canillas
2016-10-04 13:37   ` Geert Uytterhoeven
2016-10-04 13:37     ` Geert Uytterhoeven
2016-10-04 13:37     ` Geert Uytterhoeven
2016-10-04 13:46     ` Krzysztof Kozlowski
2016-10-04 13:46       ` Krzysztof Kozlowski
2016-10-04 13:46       ` Krzysztof Kozlowski
2016-08-24 13:49 ` [PATCH v2 6/7] arm64: dts: exynos: Add dts file for Exynos5433-based TM2 board Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-25  9:28   ` kbuild test robot
2016-08-25  9:28     ` kbuild test robot
2016-08-25  9:28     ` kbuild test robot
2016-08-26 16:32   ` Krzysztof Kozlowski
2016-08-26 16:32     ` Krzysztof Kozlowski
2016-08-26 16:32     ` Krzysztof Kozlowski
2016-08-26 17:11     ` Krzysztof Kozlowski
2016-08-26 17:11       ` Krzysztof Kozlowski
2016-08-26 17:11       ` Krzysztof Kozlowski
2016-08-26 20:46     ` Chanwoo Choi
2016-08-26 20:46       ` Chanwoo Choi
2016-08-26 20:46       ` Chanwoo Choi
2016-08-26 18:30   ` Javier Martinez Canillas
2016-08-26 18:30     ` Javier Martinez Canillas
2016-08-26 18:30     ` Javier Martinez Canillas
2016-08-26 18:35     ` Javier Martinez Canillas
2016-08-26 18:35       ` Javier Martinez Canillas
2016-09-02 11:29     ` Chanwoo Choi
2016-09-02 11:29       ` Chanwoo Choi
2016-09-07  8:08       ` Javier Martinez Canillas
2016-09-07  8:08         ` Javier Martinez Canillas
2016-08-30 17:11   ` Rob Herring
2016-08-30 17:11     ` Rob Herring
2016-08-30 17:11     ` Rob Herring
2016-08-31  1:24     ` Chanwoo Choi
2016-08-31  1:24       ` Chanwoo Choi
2016-08-31  1:24       ` Chanwoo Choi
2016-08-24 13:49 ` [PATCH v2 7/7] arm64: dts: exynos: Add dts file for Exynos5433-based TM2E board Chanwoo Choi
2016-08-24 13:49   ` Chanwoo Choi
2016-08-26 18:32   ` Javier Martinez Canillas
2016-08-26 18:32     ` Javier Martinez Canillas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1472046551-703-2-git-send-email-cw00.choi@samsung.com \
    --to=cw00.choi@samsung.com \
    --cc=a.hajda@samsung.com \
    --cc=beomho.seo@samsung.com \
    --cc=catalin.marinas@arm.com \
    --cc=chanwoo@kernel.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=human.hwang@samsung.com \
    --cc=ideal.song@samsung.com \
    --cc=ingi2.kim@samsung.com \
    --cc=inki.dae@samsung.com \
    --cc=jaewon02.kim@samsung.com \
    --cc=jh80.chung@samsung.com \
    --cc=jonghwa3.lee@samsung.com \
    --cc=jy0922.shim@samsung.com \
    --cc=k.kozlowski@samsung.com \
    --cc=kgene@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=s.nawrocki@samsung.com \
    --cc=sw0312.kim@samsung.com \
    --cc=tglx@linutronix.de \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.