]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts: am4372: fix clock source for arm twd and global timers
authorGrygorii Strashko <grygorii.strashko@ti.com>
Mon, 30 Nov 2015 15:56:38 +0000 (17:56 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 10 Dec 2015 00:46:25 +0000 (16:46 -0800)
commit27ac9cd4b573b5723a8298fb36e09dbf699519a2
tree819497a426b08c865309b72187e961a96897faf9
parent76bf6de797b140582ae5b1bb3478761f4fc561d2
ARM: dts: am4372: fix clock source for arm twd and global timers

ARM TWD and Global timer are clocked by PERIPHCLK which is MPU_CLK/2.
But now they are clocked by dpll_mpu_m2_ck == MPU_CLK and, as result.
Timekeeping core misbehaves. For example, execution of command
"sleep 5" will take 10 sec instead of 5.

Hence, fix it by adding mpu_periphclk ("fixed-factor-clock") and use
it for clocking ARM TWD and Global timer (same way as on OMAP4).

Cc: Tony Lindgren <tony@atomide.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Tero Kristo <t-kristo@ti.com>
Fixes:commit 7da5880f9a4e ("arm: boot: dts: am4372: add ARM timers and SCU nodes")
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/am4372.dtsi
arch/arm/boot/dts/am43xx-clocks.dtsi