]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: provide twd clock lookup from device tree
authorShawn Guo <shawn.guo@linaro.org>
Wed, 3 Apr 2013 15:50:09 +0000 (23:50 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Tue, 9 Apr 2013 11:46:31 +0000 (19:46 +0800)
commite6510213821f2365cdddc394f9021cdd640d4ef6
tree46a5a30942800d75aa72ccfb4890568d6f610359
parent0f2a16b6e7c25c2a0e87773b9332e8a5efe7ad17
ARM: imx: provide twd clock lookup from device tree

While booting from device tree, imx6q used to provide twd clock lookup
by calling clk_register_clkdev() in clock driver.  However, the commit
eac69dd (ARM: use device tree to get smp_twd clock) forces DT boot to
look up the clock from device tree.  It causes the failure below when
twd driver tries to get the clock, and hence kernel has to calibrate the
local timer frequency.

 smp_twd: clock not found -2
 ...
 Calibrating local timer... 396.13MHz.

Fix the regression by providing twd clock lookup from device tree, and
remove the unused twd clk_register_clkdev() call from clock driver.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx6qdl.dtsi
arch/arm/mach-imx/clk-imx6q.c