]> git.baikalelectronics.ru Git - kernel.git/commit
clk: shmobile: rcar-gen2: Use kick bit to allow Z clock frequency change
authorBenoit Cousson <bcousson@baylibre.com>
Fri, 28 Feb 2014 13:12:05 +0000 (14:12 +0100)
committerMike Turquette <mturquette@linaro.org>
Thu, 6 Mar 2014 06:41:15 +0000 (22:41 -0800)
commita3e583544017fed153993cae63bc72975eb43c81
treee64e3c3e55f6609fb143996229c3aa9c265e367d
parentb05b9cee8162228ab4ab6bfa208778cd2be2f790
clk: shmobile: rcar-gen2: Use kick bit to allow Z clock frequency change

The Z clock frequency change is effective only after setting the kick
bit located in the FRQCRB register.
Without that, the CA15 CPUs clock rate will never change.

Fix that by checking if the kick bit is cleared and enable it to make
the clock rate change effective. The bit is cleared automatically upon
completion.

Signed-off-by: Benoit Cousson <bcousson+renesas@baylibre.com>
Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/shmobile/clk-rcar-gen2.c