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>
Tue, 2 Apr 2013 01:58:23 +0000 (10:58 +0900)
commit7653c318b73d8553d4c13bb7e371878ddc19f80d
treeec18d819e483d491e19c4f10bd4e6aa57a46de8b
parentd313d068d4b5801ea9c0c66bed66f37c64ad6807
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