linux-arm-kernel.lists.infradead.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
  2020-07-20 10:47 ` [PATCH V2 1/2] clocksource: Add support for i.MX TPM driver with ARM64 Daniel Lezcano
  0 siblings, 2 replies; 5+ 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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ 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
  1 sibling, 2 replies; 5+ 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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ 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; 5+ 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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ 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
  1 sibling, 0 replies; 5+ 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-soc, Linux-imx

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ 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; 5+ 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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

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

Thread overview: 5+ 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

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