summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-sunxi/dram.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-10-25 20:27:23 +0200
committerHans de Goede <hdegoede@redhat.com>2014-11-13 14:49:01 +0100
commit9a07eb0ba02d4036317e0ca2a9b0e4769aac62bc (patch)
tree6da0826fd1a768d8d194d13fd53590ce03578a05 /arch/arm/include/asm/arch-sunxi/dram.h
parentbec72c7994d7bee448eeee49410b689df36543e3 (diff)
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>
Diffstat (limited to 'arch/arm/include/asm/arch-sunxi/dram.h')
-rw-r--r--arch/arm/include/asm/arch-sunxi/dram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-sunxi/dram.h b/arch/arm/include/asm/arch-sunxi/dram.h
index c58971df75d..9072e682298 100644
--- a/arch/arm/include/asm/arch-sunxi/dram.h
+++ b/arch/arm/include/asm/arch-sunxi/dram.h
@@ -15,7 +15,11 @@
#include <linux/types.h>
/* dram regs definition */
+#if defined(CONFIG_MACH_SUN6I)
+#include <asm/arch/dram_sun6i.h>
+#else
#include <asm/arch/dram_sun4i.h>
+#endif
unsigned long sunxi_dram_init(void);