linux_old1/drivers/clk/sunxi-ng
Chen-Yu Tsai 8adfb08605 clk: sunxi-ng: mux: Add clk notifier functions
On sunxi we support cpufreq by changing the clock rate of PLL-CPU.
It's possible the clock output of the PLL goes out of the CPU's
operational limits when the PLL's multipliers / dividers are changed
and it hasn't stabilized yet. This would result in the CPU hanging.

To circumvent this, we temporarily switch the CPU mux clock to another
stable clock before the rate change, and switch it back after the PLL
stabilizes. This is done with clk notifiers registered on the PLL.

This patch adds common functions for notifiers to reparent mux clocks.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2016-08-25 22:30:36 +02:00
..
Kconfig clk: sunxi-ng: h3: Fix Kconfig symbol typo 2016-07-11 14:35:16 -07:00
Makefile clk: sunxi-ng: Add H3 clocks 2016-07-08 18:05:12 -07:00
ccu-sun8i-h3.c clk: sunxi-ng: mux: support fixed pre-dividers on multiple parents 2016-08-25 22:27:22 +02:00
ccu-sun8i-h3.h clk: sunxi-ng: Add H3 clocks 2016-07-08 18:05:12 -07:00
ccu_common.c
ccu_common.h
ccu_div.c clk: sunxi-ng: Add divider 2016-07-08 18:04:48 -07:00
ccu_div.h clk: sunxi-ng: mux: Rename mux macro to be consistent 2016-08-25 22:25:53 +02:00
ccu_frac.c
ccu_frac.h
ccu_gate.c clk: sunxi-ng: Add gate clock support 2016-07-08 18:04:38 -07:00
ccu_gate.h clk: sunxi-ng: Add gate clock support 2016-07-08 18:04:38 -07:00
ccu_mp.c clk: sunxi-ng: Add M-P factor clock support 2016-07-08 18:04:52 -07:00
ccu_mp.h clk: sunxi-ng: mux: Rename mux macro to be consistent 2016-08-25 22:25:53 +02:00
ccu_mult.h
ccu_mux.c clk: sunxi-ng: mux: Add clk notifier functions 2016-08-25 22:30:36 +02:00
ccu_mux.h clk: sunxi-ng: mux: Add clk notifier functions 2016-08-25 22:30:36 +02:00
ccu_nk.c clk: sunxi-ng: Add N-K-factor clock support 2016-07-08 18:04:56 -07:00
ccu_nk.h clk: sunxi-ng: Add N-K-factor clock support 2016-07-08 18:04:56 -07:00
ccu_nkm.c clk: sunxi-ng: nkm: Add mux to support multiple parents 2016-08-08 20:03:20 +02:00
ccu_nkm.h clk: sunxi-ng: mux: Rename mux macro to be consistent 2016-08-25 22:25:53 +02:00
ccu_nkmp.c clk: sunxi-ng: Add N-K-M-P factor clock 2016-07-08 18:05:06 -07:00
ccu_nkmp.h clk: sunxi-ng: Add N-K-M-P factor clock 2016-07-08 18:05:06 -07:00
ccu_nm.c clk: sunxi-ng: Add N-M-factor clock support 2016-07-08 18:05:00 -07:00
ccu_nm.h clk: sunxi-ng: Add N-M-factor clock support 2016-07-08 18:05:00 -07:00
ccu_phase.c clk: sunxi-ng: Add phase clock support 2016-07-08 18:04:45 -07:00
ccu_phase.h clk: sunxi-ng: Add phase clock support 2016-07-08 18:04:45 -07:00
ccu_reset.c
ccu_reset.h