]> 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, 28 Mar 2013 07:40:37 +0000 (16:40 +0900)
commite1b8b96f16b02c58f9458a2f4a026e1974160b48
tree31e0c988a46ee4950268524bfcad5ecf64505afd
parentaea536b06f53d5828746c39c2969ac10889d21a8
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