linux/drivers/clk/rockchip
Heiko Stuebner 8ca1ca8f60 clk: rockchip: handle mux dependency of fractional dividers
The fractional dividers of Rockchip SoCs contain an "auto-gating-feature"
that requires the downstream mux to actually point to the fractional
divider and the fractional divider gate to be enabled, for it to really
accept changes to the divider ratio.

The downstream muxes themselfs are not generic enough to include them
directly into the fractional divider, as they have varying sources of
parent clocks including not only clocks related to the fractional
dividers but other clocks as well.

To solve this, allow our clock branches to specify direct child clock-
branches in the new child property, let the fractional divider register
its downstream mux through this and add a clock notifier that temporarily
switches the mux setting when it notices rate changes to the fractional
divider.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
2015-12-23 12:57:29 -08:00
..
clk-cpu.c clk: rockchip: Properly include clk.h 2015-07-20 11:11:10 -07:00
clk-inverter.c clk: Convert __clk_get_name(hw->clk) to clk_hw_get_name(hw) 2015-08-24 16:49:12 -07:00
clk-mmc-phase.c The majority of the changes are driver updates and new device 2015-11-05 12:59:36 -08:00
clk-pll.c clk: rockchip: add new pll-type for rk3036 and similar socs 2015-11-23 21:55:07 +01:00
clk-rk3036.c clk: rockchip: add clock controller for rk3036 2015-11-23 21:59:19 +01:00
clk-rk3188.c clk: rockchip: Add pclk_peri to critical clocks on RK3066/RK3188 2015-09-10 13:55:30 -07:00
clk-rk3288.c clk: rockchip: switch PLLs to slow mode before reboot for rk3288 2015-12-01 18:33:43 +01:00
clk-rk3368.c clk: rockchip: fix rk3368 cpuclk divider offsets 2015-12-03 16:20:02 +01:00
clk-rockchip.c clk: rockchip: fix function type for CLK_OF_DECLARE 2014-05-20 14:25:22 -05:00
clk.c clk: rockchip: handle mux dependency of fractional dividers 2015-12-23 12:57:29 -08:00
clk.h clk: rockchip: handle mux dependency of fractional dividers 2015-12-23 12:57:29 -08:00
Makefile clk: rockchip: add clock controller for rk3036 2015-11-23 21:59:19 +01:00
softrst.c clk: rockchip: add reset controller 2014-07-13 12:17:07 -07:00