]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: shmobile: sh73a0: wait for completion when kicking the clock
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 28 Feb 2013 12:21:58 +0000 (13:21 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 21 Mar 2013 11:37:21 +0000 (20:37 +0900)
commit78a0a71a7a3c058ca0dfe416cfb8bdf710a36079
tree9acb9d238ee5f0b192f84a1ae233636f843319a9
parentd75bc78b508d0a95d7738290d8ec9923691f4301
ARM: shmobile: sh73a0: wait for completion when kicking the clock

To reconfigure clocks, controlled by FRQCRA and FRQCRB, a kick bit has to
be set and to make sure the setting has taken effect, it has to be read
back repeatedly until it is cleared by the hardware. This patch adds the
waiting part, that was missing until now.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <damm@opensource.se
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/clock-sh73a0.c