Allows building and compile-testing the i.MX TPM driver for ARM64.
Signed-off-by: Anson Huang <[email protected]>
---
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
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 <[email protected]>
> ---
> 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
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.
Signed-off-by: Anson Huang <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
---
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.