linux_dsm_epyc7002/drivers/clk/sunxi
Hans de Goede 6424e0aeeb clk: sunxi: rewrite sun9i_a80_get_pll4_factors()
The old implementation of sun9i_a80_get_pll4_factors() has several issues,
it checks against 256 / 512 in various places where it should use 255 / 511,
it does the wrong thing for low frequencies which are an even multiple of
6 MHz, e.g. if you ask it for 72 MHz it will result in 144 Mhz, and it does
not take into account that n must be at least 12. Moreover it is quite hard
to read / follow it.

This commit rewrites it to be correct in all cases, and makes it much easier
to follow the code / to read.

Cc: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2015-01-25 16:55:13 +01:00
..
clk-a10-hosc.c clk: sunxi: Move the 24M oscillator to a file of its own 2014-06-11 09:58:44 +02:00
clk-a20-gmac.c clk: sunxi: gmac-tx-clk mux is not a CLK_MUX_INDEX_BIT mux 2014-11-23 17:02:57 +01:00
clk-factors.c clk: sunxi: Give sunxi_factors_register a registers parameter 2014-12-21 23:51:37 +01:00
clk-factors.h clk: sunxi: Give sunxi_factors_register a registers parameter 2014-12-21 23:51:37 +01:00
clk-mod0.c clk: sunxi: Add mod0 and mmc module clock support for A80 2015-01-19 22:48:55 +01:00
clk-sun6i-apb0-gates.c clk: Remove .owner field for driver 2014-09-25 17:43:31 -07:00
clk-sun6i-apb0.c clk: Remove .owner field for driver 2014-09-25 17:43:31 -07:00
clk-sun6i-ar100.c clk: Change clk_ops->determine_rate to return a clk_hw as the best parent 2014-12-03 16:21:37 -08:00
clk-sun8i-apb0.c clk: Remove .owner field for driver 2014-09-25 17:43:31 -07:00
clk-sun8i-mbus.c clk: sunxi: Give sunxi_factors_register a registers parameter 2014-12-21 23:51:37 +01:00
clk-sun9i-core.c clk: sunxi: rewrite sun9i_a80_get_pll4_factors() 2015-01-25 16:55:13 +01:00
clk-sun9i-mmc.c clk: sunxi: Add driver for A80 MMC config clocks/resets 2015-01-20 17:14:38 +01:00
clk-sunxi.c clk: sunxi: Remove custom phase function 2015-01-14 10:45:27 +01:00
Makefile clk: sunxi: Add driver for A80 MMC config clocks/resets 2015-01-20 17:14:38 +01:00