diff options
author | Anson Huang <anson.huang@nxp.com> | 2018-12-07 07:05:36 +0100 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2018-12-18 22:22:23 +0100 |
commit | 4f352d1fc5a8d3220e29766a26172eff34867014 (patch) | |
tree | fcb056048913cd76b0d445daf009f88a902b77fb /drivers/clocksource/timer-imx-tpm.c | |
parent | clocksource/drivers/fttmr010: Fix invalid interrupt register access (diff) | |
download | linux-4f352d1fc5a8d3220e29766a26172eff34867014.tar.xz linux-4f352d1fc5a8d3220e29766a26172eff34867014.zip |
clocksource/drivers/timer-imx-tpm: Specify clock name for timer-of
i.MX TPM needs "ipg" clock for register access and "per" clock for
timer function, the driver gets "ipg" clock by searching the clock
name, but timer-of initialization will get first clock in device
tree TPM node since no clock name specified in of_clk, that means
the "per" clock MUST be the first clock entry in device tree TPM
node, this patch specifies clock name for of_clk to avoid this
restriction, it makes TPM driver work properly with different sequence
of clock entries in device tree TPM node.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/clocksource/timer-imx-tpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clocksource/timer-imx-tpm.c b/drivers/clocksource/timer-imx-tpm.c index c3dd4d2f2a6e..c1d52d5264c2 100644 --- a/drivers/clocksource/timer-imx-tpm.c +++ b/drivers/clocksource/timer-imx-tpm.c @@ -139,6 +139,9 @@ static struct timer_of to_tpm = { .handler = tpm_timer_interrupt, .flags = IRQF_TIMER | IRQF_IRQPOLL, }, + .of_clk = { + .name = "per", + }, }; static int __init tpm_clocksource_init(void) |