linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64
@ 2020-07-08  3:16 Anson Huang
  2020-07-08  3:16 ` [PATCH V2 2/2] arm64: imx: Select TPM driver by default Anson Huang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Anson Huang @ 2020-07-08  3:16 UTC (permalink / raw)
  To: catalin.marinas, will, daniel.lezcano, tglx, linux-arm-kernel,
	linux-kernel
  Cc: Linux-imx

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

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
Changes since V1:
	- select TIMER_OF for CLKSRC_IMX_TPM.
---
 drivers/clocksource/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index be49123..401eac7 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -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.
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH V2 2/2] arm64: imx: Select TPM driver by default
  2020-07-08  3:16 [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64 Anson Huang
@ 2020-07-08  3:16 ` Anson Huang
  2020-07-17  3:57   ` Daniel Lezcano
  2020-08-20  6:22   ` Anson Huang
  2020-07-20 10:47 ` [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64 Daniel Lezcano
  2020-07-23 19:09 ` [tip: timers/core] clocksource/drivers/imx: " tip-bot2 for Anson Huang
  2 siblings, 2 replies; 6+ messages in thread
From: Anson Huang @ 2020-07-08  3:16 UTC (permalink / raw)
  To: catalin.marinas, will, daniel.lezcano, tglx, linux-arm-kernel,
	linux-kernel
  Cc: Linux-imx

Select CLKSRC_IMX_TPM for ARCH_MXC by default.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
No change.
---
 arch/arm64/Kconfig.platforms | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 8dd05b2..c52b7a0 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH V2 2/2] arm64: imx: Select TPM driver by default
  2020-07-08  3:16 ` [PATCH V2 2/2] arm64: imx: Select TPM driver by default Anson Huang
@ 2020-07-17  3:57   ` Daniel Lezcano
  2020-08-20  6:22   ` Anson Huang
  1 sibling, 0 replies; 6+ messages in thread
From: Daniel Lezcano @ 2020-07-17  3:57 UTC (permalink / raw)
  To: Anson Huang, catalin.marinas, will, tglx, linux-arm-kernel, linux-kernel
  Cc: Linux-imx

On 08/07/2020 05:16, Anson Huang wrote:
> Select CLKSRC_IMX_TPM for ARCH_MXC by default.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> No change.
> ---
>  arch/arm64/Kconfig.platforms | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index 8dd05b2..c52b7a0 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -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 ?


-- 
<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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64
  2020-07-08  3:16 [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64 Anson Huang
  2020-07-08  3:16 ` [PATCH V2 2/2] arm64: imx: Select TPM driver by default Anson Huang
@ 2020-07-20 10:47 ` Daniel Lezcano
  2020-07-23 19:09 ` [tip: timers/core] clocksource/drivers/imx: " tip-bot2 for Anson Huang
  2 siblings, 0 replies; 6+ messages in thread
From: Daniel Lezcano @ 2020-07-20 10:47 UTC (permalink / raw)
  To: Anson Huang, catalin.marinas, will, tglx, linux-arm-kernel, linux-kernel
  Cc: Linux-imx, linux-soc

On 08/07/2020 05:16, Anson Huang wrote:
> Allows building and compile-testing the i.MX TPM driver for ARM64.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> Changes since V1:
> 	- select TIMER_OF for CLKSRC_IMX_TPM.
> ---
>  drivers/clocksource/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> index be49123..401eac7 100644
> --- a/drivers/clocksource/Kconfig
> +++ b/drivers/clocksource/Kconfig
> @@ -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


-- 
<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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [tip: timers/core] clocksource/drivers/imx: Add support for i.MX TPM driver with ARM64
  2020-07-08  3:16 [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64 Anson Huang
  2020-07-08  3:16 ` [PATCH V2 2/2] arm64: imx: Select TPM driver by default Anson Huang
  2020-07-20 10:47 ` [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64 Daniel Lezcano
@ 2020-07-23 19:09 ` tip-bot2 for Anson Huang
  2 siblings, 0 replies; 6+ messages in thread
From: tip-bot2 for Anson Huang @ 2020-07-23 19:09 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: Anson Huang, Daniel Lezcano, x86, LKML

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 <Anson.Huang@nxp.com>
AuthorDate:    Wed, 08 Jul 2020 11:16:07 +08:00
Committer:     Daniel Lezcano <daniel.lezcano@linaro.org>
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.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/1594178168-13007-1-git-send-email-Anson.Huang@nxp.com
---
 drivers/clocksource/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 9141838..9936d15 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -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.

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* RE: [PATCH V2 2/2] arm64: imx: Select TPM driver by default
  2020-07-08  3:16 ` [PATCH V2 2/2] arm64: imx: Select TPM driver by default Anson Huang
  2020-07-17  3:57   ` Daniel Lezcano
@ 2020-08-20  6:22   ` Anson Huang
  1 sibling, 0 replies; 6+ messages in thread
From: Anson Huang @ 2020-08-20  6:22 UTC (permalink / raw)
  To: catalin.marinas, will, daniel.lezcano, tglx, linux-arm-kernel,
	linux-kernel
  Cc: dl-linux-imx

Gentle ping...

> -----Original Message-----
> From: Anson Huang <Anson.Huang@nxp.com>
> Sent: 2020年7月8日 11:16
> To: catalin.marinas@arm.com; will@kernel.org; daniel.lezcano@linaro.org;
> tglx@linutronix.de; linux-arm-kernel@lists.infradead.org;
> linux-kernel@vger.kernel.org
> Cc: dl-linux-imx <linux-imx@nxp.com>
> Subject: [PATCH V2 2/2] arm64: imx: Select TPM driver by default
> 
> Select CLKSRC_IMX_TPM for ARCH_MXC by default.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
> No change.
> ---
>  arch/arm64/Kconfig.platforms | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index 8dd05b2..c52b7a0 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-08-20  6:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-08  3:16 [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64 Anson Huang
2020-07-08  3:16 ` [PATCH V2 2/2] arm64: imx: Select TPM driver by default Anson Huang
2020-07-17  3:57   ` Daniel Lezcano
2020-08-20  6:22   ` Anson Huang
2020-07-20 10:47 ` [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64 Daniel Lezcano
2020-07-23 19:09 ` [tip: timers/core] clocksource/drivers/imx: " tip-bot2 for Anson Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).