Skip to contentSkip to conversation

clocksource: Add support for i.MX TPM driver with ARM64

PATCH Applied Anson Huang 3 participants 6 messages Jul 8, 2020 – Aug 20, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 clocksource: Add support for i.MX TPM driver with ARM64

Allows building and compile-testing the i.MX TPM driver for ARM64.

---
Changes since V1:
- select TIMER_OF for CLKSRC_IMX_TPM.

---
 drivers/clocksource/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/Kconfig +2 -1
index be49123..401eac7 100644
@@ -620,8 +620,9 @@ config CLKSRC_IMX_GPT
 
 config CLKSRC_IMX_TPM
 	bool "Clocksource using i.MX TPM" if COMPILE_TEST
-	depends on ARM && CLKDEV_LOOKUP
+	depends on (ARM || ARM64) && CLKDEV_LOOKUP
 	select CLKSRC_MMIO
+	select TIMER_OF
 	help
 	  Enable this option to use IMX Timer/PWM Module (TPM) timer as
 	  clocksource.
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 2/2 arm64: imx: Select TPM driver by default

Select CLKSRC_IMX_TPM for ARCH_MXC by default.

---
No change.

---
 arch/arm64/Kconfig.platforms | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Kconfig.platforms +1 -0
index 8dd05b2..c52b7a0 100644
@@ -169,6 +169,7 @@ config ARCH_MXC
 	bool "ARMv8 based NXP i.MX SoC family"
 	select ARM64_ERRATUM_843419
 	select ARM64_ERRATUM_845719 if COMPAT
+	select CLKSRC_IMX_TPM
 	select IMX_GPCV2
 	select IMX_GPCV2_PM_DOMAINS
 	select PM
Signature · 1 line
2.7.4
#2 lore raw

Re: [PATCH V2 2/2] arm64: imx: Select TPM driver by default

Quoted 14 lines · Anson Huang

Select CLKSRC_IMX_TPM for ARCH_MXC by default.

---
No change.

---
 arch/arm64/Kconfig.platforms | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Kconfig.platforms +0 -0
index 8dd05b2..c52b7a0 100644

arch/arm64/Kconfig.platforms config ARCH_MXC · line 175

Quoted 7 lines
arch/arm64/Kconfig.platforms +1 -0
@@ -169,6 +169,7 @@ config ARCH_MXC
 	bool "ARMv8 based NXP i.MX SoC family"
 	select ARM64_ERRATUM_843419
 	select ARM64_ERRATUM_845719 if COMPAT
+	select CLKSRC_IMX_TPM
 	select IMX_GPCV2
 	select IMX_GPCV2_PM_DOMAINS
 	select PM

Shall I take this patch also or just 1/2 ?

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
#3 lore raw

RE: [PATCH V2 2/2] arm64: imx: Select TPM driver by default

In reply to Anson Huang

Gentle ping...

Quoted 32 lines

-----Original Message-----
From: Anson Huang <[email protected]>
Sent: 2020年7月8日 11:16
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Cc: dl-linux-imx <[email protected]>
Subject: [PATCH V2 2/2] arm64: imx: Select TPM driver by default

Select CLKSRC_IMX_TPM for ARCH_MXC by default.

---
No change.

---
 arch/arm64/Kconfig.platforms | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/Kconfig.platforms +1 -1
index 8dd05b2..c52b7a0 100644
@@ -169,6 +169,7 @@ config ARCH_MXC
 	bool "ARMv8 based NXP i.MX SoC family"
 	select ARM64_ERRATUM_843419
 	select ARM64_ERRATUM_845719 if COMPAT
+	select CLKSRC_IMX_TPM
 	select IMX_GPCV2
 	select IMX_GPCV2_PM_DOMAINS
 	select PM
--

2.7.4

#4 lore raw
In reply to Anson Huang
Quoted 15 lines · Anson Huang

Allows building and compile-testing the i.MX TPM driver for ARM64.

---
Changes since V1:
- select TIMER_OF for CLKSRC_IMX_TPM.

---
 drivers/clocksource/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/Kconfig +0 -0
index be49123..401eac7 100644

drivers/clocksource/Kconfig config CLKSRC_IMX_GPT · line 628

Quoted 10 lines
drivers/clocksource/Kconfig +2 -1
@@ -620,8 +620,9 @@ config CLKSRC_IMX_GPT
 
 config CLKSRC_IMX_TPM
 	bool "Clocksource using i.MX TPM" if COMPILE_TEST
-	depends on ARM && CLKDEV_LOOKUP
+	depends on (ARM || ARM64) && CLKDEV_LOOKUP
 	select CLKSRC_MMIO
+	select TIMER_OF
 	help
 	  Enable this option to use IMX Timer/PWM Module (TPM) timer as
 	  clocksource.

Applied, but I will let 2/2 applied by the corresponding maintainer.

Thanks
-- Daniel

Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
merge bot Applied
#5 lore raw

[tip: timers/core] clocksource/drivers/imx: Add support for i.MX TPM driver with ARM64

In reply to Anson Huang
The following commit has been merged into the timers/core branch of tip:

The following commit has been merged into the timers/core branch of tip:

Commit-ID:     a6d0812a081defd8bef5453c7b69a1cb4735a170
Gitweb:        https://git.kernel.org/tip/a6d0812a081defd8bef5453c7b69a1cb4735a170
Author:        Anson Huang <[email protected]>
AuthorDate:    Wed, 08 Jul 2020 11:16:07 +08:00
Committer:     Daniel Lezcano <[email protected]>
CommitterDate: Thu, 23 Jul 2020 16:57:34 +02:00

clocksource/drivers/imx: Add support for i.MX TPM driver with ARM64

Allows building and compile-testing the i.MX TPM driver for ARM64.

---
 drivers/clocksource/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/clocksource/Kconfig +2 -1
index 9141838..9936d15 100644
@@ -616,8 +616,9 @@ config CLKSRC_IMX_GPT
 
 config CLKSRC_IMX_TPM
 	bool "Clocksource using i.MX TPM" if COMPILE_TEST
-	depends on ARM && CLKDEV_LOOKUP
+	depends on (ARM || ARM64) && CLKDEV_LOOKUP
 	select CLKSRC_MMIO
+	select TIMER_OF
 	help
 	  Enable this option to use IMX Timer/PWM Module (TPM) timer as
 	  clocksource.