Signed-off-by: Paul Kocialkowski <[email protected]>
---
board/sunxi/Makefile | 1 +
board/sunxi/dram_ainol_aw1.c | 31 +++++++++++++++++++++++++++++++
boards.cfg | 1 +
3 files changed, 33 insertions(+)
create mode 100644 board/sunxi/dram_ainol_aw1.c
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index 07042da..39bf4f3 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -20,6 +20,7 @@ obj-$(CONFIG_A20_OLINUXINO_L) += dram_a20_olinuxino_l.o
obj-$(CONFIG_A20_OLINUXINO_L2) += dram_a20_olinuxino_l2.o
obj-$(CONFIG_A20_OLINUXINO_M) += dram_sun7i_384_1024_iow16.o
obj-$(CONFIG_A20_SOM) += dram_sun7i_384_1024_iow16.o
+obj-$(CONFIG_AINOL_AW1) += dram_ainol_aw1.o
obj-$(CONFIG_AUXTEK_T003) += dram_auxtek_t003.o
# This is not a typo, uses the same mem settings as the a10s-olinuxino-m
obj-$(CONFIG_AUXTEK_T004) += dram_a10s_olinuxino_m.o
diff --git a/board/sunxi/dram_ainol_aw1.c b/board/sunxi/dram_ainol_aw1.c
new file mode 100644
index 0000000..ed9baea
--- /dev/null
+++ b/board/sunxi/dram_ainol_aw1.c
@@ -0,0 +1,31 @@
+/* this file is generated, don't edit it yourself */
+
+#include "common.h"
+#include <asm/arch/dram.h>
+
+static struct dram_para dram_para = {
+ .clock = 432,
+ .type = 3,
+ .rank_num = 1,
+ .density = 2048,
+ .io_width = 16,
+ .bus_width = 32,
+ .cas = 9,
+ .zq = 0x7b,
+ .odt_en = 0,
+ .size = 512,
+ .tpr0 = 0x42d899b7,
+ .tpr1 = 0xa090,
+ .tpr2 = 0x22a00,
+ .tpr3 = 0,
+ .tpr4 = 1,
+ .tpr5 = 0,
+ .emr1 = 0x4,
+ .emr2 = 0x10,
+ .emr3 = 0,
+};
+
+unsigned long sunxi_dram_init(void)
+{
+ return dramc_init(&dram_para);
+}
diff --git a/boards.cfg b/boards.cfg
index 0e4a385..3417916 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -386,6 +386,7 @@ Active arm armv7 sunxi -
sunxi
Active arm armv7 sunxi - sunxi
A20-OLinuXino_MICRO
sun7i:A20_OLINUXINO_M,CONS_INDEX=1,STATUSLED=226,SPL,SUNXI_EMAC
-
Active arm armv7 sunxi - sunxi
A20-OLinuXino_MICRO_FEL
sun7i:A20_OLINUXINO_M,CONS_INDEX=1,STATUSLED=226,SPL_FEL,SUNXI_EMAC
-
Active arm armv7 sunxi - sunxi
A20-SOM
sun7i:A20_SOM,SPL,SUNXI_GMAC,RGMII,STATUSLED1=245,FAST_MBUS
-
+Active arm armv7 sunxi - sunxi
Ainol_AW1 sun7i:AINOL_AW1,SPL
-
Active arm armv7 sunxi - sunxi
Auxtek-T003
sun5i:AUXTEK_T003,SPL,AXP152_POWER,STATUSLED=34
-
Active arm armv7 sunxi - sunxi
Auxtek-T004
sun5i:AUXTEK_T004,SPL,AXP152_POWER,STATUSLED=34
-
Active arm armv7 sunxi - sunxi
ba10_tv_box sun4i:BA10_TV_BOX,SPL,SUNXI_EMAC
-
--
1.7.9.5
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.