]> git.sur5r.net Git - u-boot/commit
sunxi: DRAM initialisation for sun9i
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 28 Oct 2016 10:21:28 +0000 (18:21 +0800)
committerHans de Goede <hdegoede@redhat.com>
Sun, 30 Oct 2016 10:38:04 +0000 (11:38 +0100)
commit297bb9e0fc7049c7771feed5e11cf6db89b19f27
tree8a1ab699cd722d580e836f76c8a6bfed2a91843f
parentfed329aebe3aaac0928c73547ac6316af2adf0cd
sunxi: DRAM initialisation for sun9i

This adds DRAM initialisation code for sun9i, which calculates the
appropriate timings based on timing information for the supplied
DDR3 bin and the clock speeds used.

With this DRAM setup, we have verified DDR3 clocks of up to 792MHz
(i.e. DDR3-1600) on the A80-Q7 using a dual-channel configuration.

[wens@csie.org: Moved dram_sun9i.c to arch/arm/mach-sunxi/; style cleanup]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
[hdegoede@redhat.com: Drop some huge non-documenting #if 0 ... #endif blocks]
[hdegoede@redhat.com: Fix checkpatch warnings]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/include/asm/arch-sunxi/clock_sun9i.h
arch/arm/include/asm/arch-sunxi/cpu_sun9i.h
arch/arm/include/asm/arch-sunxi/dram.h
arch/arm/include/asm/arch-sunxi/dram_sun9i.h [new file with mode: 0644]
arch/arm/mach-sunxi/Makefile
arch/arm/mach-sunxi/dram_sun9i.c [new file with mode: 0644]
board/sunxi/Kconfig