diff options
author | Chen-Yu Tsai <wens@csie.org> | 2016-12-01 19:09:57 +0800 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-04-20 13:30:01 +0200 |
commit | 8201188cf9e4fb8ce5277e4d59a458be536db927 (patch) | |
tree | 6561271ea98e0dc2c240a474b8376a970d1f6421 /arch/arm/mach-sunxi/clock_sun6i.c | |
parent | 33559ffe5bc0ea10ae9956a0ac3fbd1cc30d23b8 (diff) | |
download | u-boot-8201188cf9e4fb8ce5277e4d59a458be536db927.tar.gz |
sunxi: Use H3/A64 DRAM initialization code for R40
The R40 seems to have a variant of the memory controller found in
the H3 and A64 SoCs. Adapt the code for use on the R40. The changes
are based on released DRAM code and comparing register dumps from
boot0.
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/mach-sunxi/clock_sun6i.c')
-rw-r--r-- | arch/arm/mach-sunxi/clock_sun6i.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-sunxi/clock_sun6i.c b/arch/arm/mach-sunxi/clock_sun6i.c index 3c8c53fcf7..9068c88ab2 100644 --- a/arch/arm/mach-sunxi/clock_sun6i.c +++ b/arch/arm/mach-sunxi/clock_sun6i.c @@ -222,7 +222,9 @@ done: } #endif -#if defined(CONFIG_MACH_SUN8I_A33) || defined(CONFIG_MACH_SUN50I) +#if defined(CONFIG_MACH_SUN8I_A33) || \ + defined(CONFIG_MACH_SUN8I_R40) || \ + defined(CONFIG_MACH_SUN50I) void clock_set_pll11(unsigned int clk, bool sigma_delta_enable) { struct sunxi_ccm_reg * const ccm = |