]> git.baikalelectronics.ru Git - kernel.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>
Tue, 2 Apr 2013 01:58:23 +0000 (10:58 +0900)
commitb15cae42f9027232d7663893237aaeb3cc0d0b37
treeec18d819e483d491e19c4f10bd4e6aa57a46de8b
parentbf2433bbb3432dcd75b3e2a91115eac48ee6d077
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