clocksource/drivers/timer-imx-tpm: Specify clock name for timer-of
authorAnson Huang <anson.huang@nxp.com>
Fri, 7 Dec 2018 06:05:36 +0000 (06:05 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 18 Dec 2018 21:22:23 +0000 (22:22 +0100)
commit4f352d1fc5a8d3220e29766a26172eff34867014
treefcb056048913cd76b0d445daf009f88a902b77fb
parent86fe57fc47b17b3528fa5497fc57e158d846c4ea
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>
drivers/clocksource/timer-imx-tpm.c