u-boot/arch/arm/cpu/armv7/sunxi
Hans de Goede 1aac47bd1b sun6i: clock_set_pll5: Calculate k and m rather then hardcoding them
Our old hardcoded k and m values are based on PLL5 being configured in steps
of 48 MHz, which is correct for sun6i where the DRAM PLL runs at twice the
DRAM CLK, which is usually configured in 24 MHz step. But on the A23 (sun8i)
the PLL5 runs at half the DRAM CLK, so we require 12 MHz steps.

This commit adjusts clock_set_pll5 to automatically select the best k and m
depending on the requested clk rate.

Suggested-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
2015-01-14 14:56:37 +01:00
..
board.c sun6i: Poke magic sram controller register to avoid cache issues 2014-11-13 14:49:01 +01:00
clock.c sunxi: add sun7i clocks and timer support. 2014-05-25 16:12:12 +02:00
clock_sun4i.c sunxi: Add video pll clock functions 2014-11-25 13:38:46 +01:00
clock_sun6i.c sun6i: clock_set_pll5: Calculate k and m rather then hardcoding them 2015-01-14 14:56:37 +01:00
config.mk sunxi: non-FEL SPL boot support for sun7i 2014-05-25 16:31:03 +02:00
cpu_info.c sunxi: axp221: Add axp223 support 2015-01-14 14:56:36 +01:00
dram_sun4i.c sun4i: Rename dram_clk_cfg to dram_clk_gate 2014-11-25 13:38:46 +01:00
dram_sun6i.c sun6i: Add a sigma_delta_enable paramter to clock_set_pll5() 2015-01-14 14:56:37 +01:00
Makefile sunxi: Add support for the rsb (Reduced Serial Bus) 2015-01-14 14:56:36 +01:00
p2wi.c sun6i: s/SUNXI_*P2WI*/SUN6I_*P2WI*/ 2015-01-14 14:56:36 +01:00
pinmux.c dm: sunxi: Add pinmux functions which take a bank parameter 2014-11-05 13:09:58 +01:00
prcm.c ARM: sunxi: Allow specifying module in prcm apb0 init function 2014-10-24 09:35:39 +02:00
psci.S sunxi: Align PSCI stack calculation to comment 2015-01-14 14:56:36 +01:00
rsb.c sunxi: Add support for the rsb (Reduced Serial Bus) 2015-01-14 14:56:36 +01:00
start.c sunxi: add sun7i cpu, board and start of day support 2014-05-25 16:12:40 +02:00
timer.c sunxi: add sun7i clocks and timer support. 2014-05-25 16:12:12 +02:00
u-boot-spl-fel.lds sunxi: Add i2c support 2014-07-18 19:41:30 +01:00
u-boot-spl.lds sunxi: Add i2c support 2014-07-18 19:41:30 +01:00