]> 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)
commitc67328a5a0a05fbf0f0b2487fb39679ba54d5d37
treee64e3c3e55f6609fb143996229c3aa9c265e367d
parentfb7af1b2925915b0cb577ee717ef0b72ec54a3d6
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