Commit 4f352d1f authored by Anson Huang's avatar Anson Huang Committed by Daniel Lezcano

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: default avatarAnson Huang <Anson.Huang@nxp.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 86fe57fc
...@@ -139,6 +139,9 @@ static struct timer_of to_tpm = { ...@@ -139,6 +139,9 @@ static struct timer_of to_tpm = {
.handler = tpm_timer_interrupt, .handler = tpm_timer_interrupt,
.flags = IRQF_TIMER | IRQF_IRQPOLL, .flags = IRQF_TIMER | IRQF_IRQPOLL,
}, },
.of_clk = {
.name = "per",
},
}; };
static int __init tpm_clocksource_init(void) static int __init tpm_clocksource_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment