Comments
Patch
@@ -27,6 +27,7 @@ LIB := $(obj)lib$(BOARD).o
COBJS-y := board.o
COBJS-$(CONFIG_A13_OLINUXINO) += dram_a13_olinuxino.o
+COBJS-$(CONFIG_MELE_A1000) += dram_mele_a1000.o
COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c)
new file mode 100644
@@ -0,0 +1,24 @@
+/* this file is generated, don't edit it yourself */
+
+#include <common.h>
+#include <asm/arch/dram.h>
+
+static struct dram_para dram_para = {
+ .clock = 360,
+ .type = 3,
+ .rank_num = 1,
+ .density = 2048,
+ .io_width = 16,
+ .bus_width = 32,
+ .cas = 6,
+ .zq = 123,
+ .size = 512,
+ .tpr0 = 0x30926692,
+ .tpr1 = 0x1090,
+ .tpr2 = 0x1a0c8,
+};
+
+int sunxi_dram_init(void)
+{
+ return dramc_init(&dram_para);
+}
@@ -289,6 +289,7 @@ colibri_t20_iris arm armv7:arm720t colibri_t20_iris toradex
u8500_href arm armv7 u8500 st-ericsson u8500
snowball arm armv7 snowball st-ericsson u8500
A13-OLinuXino arm armv7 sunxi - sunxi sun5i:A13_OLINUXINO,SPL
+Mele_A1000 arm armv7 sunxi - sunxi sun4i:MELE_A1000,SPL
sun4i arm armv7 sunxi - sunxi sun4i
sun4i_sdcon arm armv7 sunxi - sunxi sun4i:UART0_PORT_F
sun5i arm armv7 sunxi - sunxi sun5i
Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net> --- board/sunxi/Makefile | 1 + board/sunxi/dram_mele_a1000.c | 24 ++++++++++++++++++++++++ boards.cfg | 1 + 3 files changed, 26 insertions(+), 0 deletions(-) create mode 100644 board/sunxi/dram_mele_a1000.c