clocksource/drivers/imx: Add support for i.MX TPM driver with ARM64
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 8 Jul 2020 03:16:07 +0000 (11:16 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 23 Jul 2020 14:57:34 +0000 (16:57 +0200)
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

index 9141838..9936d15 100644 (file)
@@ -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.