diff options
author | Heiko Stuebner <heiko@sntech.de> | 2015-12-22 22:27:59 +0100 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2015-12-23 12:57:29 -0800 |
commit | 8ca1ca8f6039f19673fb61552f276b848539dbd6 (patch) | |
tree | b1cdc1c0584c8301aa1a13b3855dfbf414281988 /drivers/bus | |
parent | 8ad0df33c62d706f925a5910701255759a68c2e5 (diff) |
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>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions