]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitd9120198ddef2c0b61ca6659ace41b7c1e7c8f08
treee64e3c3e55f6609fb143996229c3aa9c265e367d
parent0414855fdc4a40da05221fc6062cccbc0c30f169
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