]> git.karo-electronics.de Git - linux-beck.git/commit
clk: rockchip: simplify GRF handling in pll clocks
authorHeiko Stuebner <heiko@sntech.de>
Tue, 15 Mar 2016 15:55:41 +0000 (16:55 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 9 May 2016 14:04:15 +0000 (16:04 +0200)
commitc9c3c6eecc5533d14bb9bc82319257eb8bc52768
treea639c8aca7f7e360a7d51c148da846c5fb9e8c98
parent6f339dc2719eb01448c70fe3d56287d1eb9bd67e
clk: rockchip: simplify GRF handling in pll clocks

With the previous commit, the clock drivers now know at init time if the
GRF regmap is available. That means if it isn't available then, it also
won't become available later and we can therefore switch PLLs, that need
the GRF for the lock-status, to read-only mode - similar behaviour as the
aborting of rate changes we did before.

This saves some conditionals on every rate change and we can also drop
the rockchip_clk_get_grf function completely.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/clk/rockchip/clk-pll.c
drivers/clk/rockchip/clk.c
drivers/clk/rockchip/clk.h