linux_dsm_epyc7002/drivers/clk/samsung
Andrzej Hajda a8321e7887 clk: samsung: exynos3250: Fix PLL rates
Rates declared in PLL rate tables should match exactly rates calculated
from PLL coefficients. If that is not the case, rate of the PLL's child clock
might be set not as expected. For instance, if in the PLL rates table we have
a 393216000 Hz entry and the real value as returned by the PLL's recalc_rate
callback is 393216003, after setting PLL's clk rate to 393216000 clk_get_rate
will return 393216003. If we now attempt to set rate of a PLL's child divider
clock to 393216000/2 its rate will be 131072001, rather than 196608000.
That is, the divider will be set to 3 instead of 2, because 393216003/2 is
greater than 196608000.

To fix this issue declared rates are changed to exactly match rates generated
by the PLL, as calculated from the P, M, S, K coefficients.

In this patch an erroneous P value for 74176002 output frequency is also
corrected.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
2018-02-23 15:14:47 +01:00
..
clk-cpu.c clk: samsung: Delete a memory allocation error message in clk-cpu.c 2017-09-27 17:06:18 +02:00
clk-cpu.h clk: samsung: cpu: prepare for adding Exynos5433 CPU clocks 2016-06-02 11:18:20 +02:00
clk-exynos4.c clk/samsung updates for v4.15, part 2 2017-10-30 17:59:10 -07:00
clk-exynos7.c clk: samsung: exynos7: Constify all clock initializers 2016-06-02 11:18:09 +02:00
clk-exynos3250.c clk: samsung: exynos3250: Fix PLL rates 2018-02-23 15:14:47 +01:00
clk-exynos4412-isp.c clk: samsung: Add a separate driver for Exynos4412 ISP clocks 2017-10-16 11:25:50 +02:00
clk-exynos5250.c clk: samsung: Remove clkdev alias support in Exynos5250 clk driver 2017-10-09 11:31:29 +02:00
clk-exynos5260.c clk: samsung: exynos5260: Move struct samsung_cmu_info to init section 2016-09-09 17:34:34 +02:00
clk-exynos5260.h clk/exynos5260: add clock file for exynos5260 2014-05-14 19:16:55 +02:00
clk-exynos5410.c clk: samsung: Add support for EPLL on exynos5410 2016-09-09 17:35:13 +02:00
clk-exynos5420.c clk: samsung: Drop useless alias in Exynos5420 clk driver 2017-10-09 11:31:49 +02:00
clk-exynos5433.c clk: exynos5433: Extend list of available AUD_PLL output frequencies 2018-02-14 16:01:33 +01:00
clk-exynos5440.c clk: samsung: Rework clkdev alias handling in Exynos5440 driver 2017-10-09 11:32:09 +02:00
clk-exynos-audss.c clk: samsung: Remove redundant dev_err call in exynos_audss_clk_probe() 2018-02-14 15:41:31 +01:00
clk-exynos-clkout.c clk: samsung: Remove support for Exynos4212 SoCs in Exynos CLKOUT driver 2017-10-09 11:29:16 +02:00
clk-pll.c clk/samsung updates for v4.15 2017-10-25 02:37:03 -07:00
clk-pll.h clk: samsung: Remove dead code 2017-06-07 22:47:55 +02:00
clk-s3c64xx.c clk: samsung: s3c: Remove unneeded enumeration 2018-02-14 15:40:53 +01:00
clk-s3c2410-dclk.c clk: samsung: Convert common drivers to the new clk_hw API 2017-06-07 22:47:57 +02:00
clk-s3c2410.c clk: samsung: mark s3c...._clk_sleep_init() as __init 2017-01-27 13:30:00 +01:00
clk-s3c2412.c clk: samsung: s3c: Remove unneeded enumeration 2018-02-14 15:40:53 +01:00
clk-s3c2443.c clk: samsung: s3c: Remove unneeded enumeration 2018-02-14 15:40:53 +01:00
clk-s5pv210-audss.c clk: samsung: s5pv210-audss: Convert to the new clk_hw API 2017-06-09 12:27:49 +02:00
clk-s5pv210.c clk: samsung: Remove useless check for return value of samsung_clk_init 2016-06-02 11:17:57 +02:00
clk.c clk/samsung updates for v4.15 2017-10-25 02:37:03 -07:00
clk.h clk/samsung updates for v4.15 2017-10-25 02:37:03 -07:00
Kconfig clk: samsung: Allow modular build of the Audio Subsystem CLKCON driver 2016-07-13 14:59:53 -07:00
Makefile We have two changes to the core framework this time around. The first being a 2017-11-17 20:04:24 -08:00