linux/drivers/clk/rockchip
Julius Werner bf92384b6d clk: rockchip: Ignore frac divisor for PLL equivalence when it's unused
Rockchip RK3399 PLLs can be used in two separate modes: integral and
fractional. We can select between these two modes with the unambiguously
named DSMPD bit.

During boot, we check all PLL settings to confirm that they match our
PLL table for that frequency, and reinitialize the PLLs where they
don't. The settings checked for this include the fractional divider
field that is only used in fractional mode, even if we're in integral
mode (DSMPD = 1) and that field has no effect.

This patch changes the check to only compare the fractional divider if
we're actually in fractional mode. This way, we won't reinitialize the
PLL in cases where there's absolutely no reason for that, which may
avoid glitching child clocks that should better not be glitched (e.g.
PWM regulators).

Signed-off-by: Julius Werner <jwerner@chromium.org>

[cloned the fix to the pretty similar rk3036 pll]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
2016-11-05 23:16:29 +01:00
..
clk-cpu.c clk: rockchip: fix cpuclk registration error handling 2016-05-30 09:40:23 +02:00
clk-ddr.c clk: rockchip: add new clock-type for the ddrclk 2016-09-01 11:23:56 +02:00
clk-inverter.c clk: rockchip: don't return NULL when registering inverter fails 2016-02-15 23:35:20 +01:00
clk-mmc-phase.c clk: rockchip: Revert "clk: rockchip: reset init state before mmc card initialization" 2016-05-30 09:40:23 +02:00
clk-pll.c clk: rockchip: Ignore frac divisor for PLL equivalence when it's unused 2016-11-05 23:16:29 +01:00
clk-rk3036.c clk: rockchip: release io resource when failing to init clk 2016-03-27 13:03:35 +02:00
clk-rk3188.c clk: rockchip: add 400MHz to rk3066 clock rates table 2016-11-05 23:11:01 +01:00
clk-rk3228.c clk: rockchip: export rk3228 MAC clocks 2016-07-01 01:50:11 +02:00
clk-rk3288.c clk: rockchip: release io resource when failing to init clk 2016-03-27 13:03:35 +02:00
clk-rk3368.c clk: rockchip: release io resource when failing to init clk 2016-03-27 13:03:35 +02:00
clk-rk3399.c clk: rockchip: remove more CLK_IGNORE_UNUSED for rk3399 clocktree 2016-11-05 23:12:55 +01:00
clk-rockchip.c clk: rockchip: handle of_iomap failures in legacy clock driver 2016-08-23 18:00:25 +02:00
clk.c clk: rockchip: add new clock-type for the ddrclk 2016-09-01 11:23:56 +02:00
clk.h clk: rockchip: add new clock-type for the ddrclk 2016-09-01 11:23:56 +02:00
Makefile clk: rockchip: add new clock-type for the ddrclk 2016-09-01 11:23:56 +02:00
softrst.c clk: rockchip: Make reset_control_ops const 2016-03-29 16:29:46 -07:00