]> git.sur5r.net Git - u-boot/commit
sun6i: Add dram initialization code
authorHans de Goede <hdegoede@redhat.com>
Sat, 25 Oct 2014 18:27:23 +0000 (20:27 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 13 Nov 2014 13:49:01 +0000 (14:49 +0100)
commit9a07eb0ba02d4036317e0ca2a9b0e4769aac62bc
tree6da0826fd1a768d8d194d13fd53590ce03578a05
parentbec72c7994d7bee448eeee49410b689df36543e3
sun6i: Add dram initialization code

Add full support for dram initialization, using a fixed clock and autodetection
of the memory organization (numbers of channels, bus-width, etc.).

This is based on dram_sun6i.c and dram.h from u-boot in the Allwinner A31 SDK,
extended with extra initialization sequences and the autodetect algorithm
from boot0.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
arch/arm/cpu/armv7/sunxi/Makefile
arch/arm/cpu/armv7/sunxi/dram_sun6i.c [new file with mode: 0644]
arch/arm/include/asm/arch-sunxi/cpu.h
arch/arm/include/asm/arch-sunxi/dram.h
arch/arm/include/asm/arch-sunxi/dram_sun6i.h [new file with mode: 0644]