]> 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)
commiteab511c4cce1c4cd0083c90c3c579a475adbec11
tree46a5a30942800d75aa72ccfb4890568d6f610359
parentc118080db8c2ecc4171e94eca139031aa2e8d079
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
18d5dca (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