From: HeHoPMaJIeH <[email protected]>
http://olimex.com
---
board/sunxi/Makefile | 1 +
board/sunxi/dram_olimex_a13_som.c | 32 ++++++++++++++++++++++++++++++++
boards.cfg | 1 +
3 files changed, 34 insertions(+)
create mode 100644 board/sunxi/dram_olimex_a13_som.c
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index bd15e16..f2ab627 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -73,3 +73,4 @@ obj-$(CONFIG_WOBO_I5) += dram_wobo_i5.o
obj-$(CONFIG_XZPAD700) += dram_xzpad700.o
obj-$(CONFIG_ZATAB) += dram_zatab.o
obj-$(CONFIG_MERRII_M2) += dram_merrii_m2.o
+obj-$(CONFIG_A13_SOM) += dram_olimex_a13_som.o
diff --git a/board/sunxi/dram_olimex_a13_som.c
b/board/sunxi/dram_olimex_a13_som.c
new file mode 100644
index 0000000..b6e57e7
--- /dev/null
+++ b/board/sunxi/dram_olimex_a13_som.c
@@ -0,0 +1,32 @@
+/* this file is generated, don't edit it yourself */
+
+#include <common.h>
+#include <asm/arch/dram.h>
+
+static struct dram_para dram_para = {
+ .clock = 408,
+ .type = 3,
+ .rank_num = 1,
+ .density = 4096,
+ .io_width = 16,
+ .bus_width = 16,
+ .cas = 9,
+ .zq = 123,
+ .odt_en = 0,
+ .size = 512,
+ .tpr0 = 0x42d899b7,
+ .tpr1 = 0xa090,
+ .tpr2 = 0x22a00,
+ .tpr3 = 0,
+ .tpr4 = 0,
+ .tpr5 = 0,
+ .emr1 = 0,
+ .emr2 = 0x10,
+ .emr3 = 0,
+
+};
+
+unsigned long sunxi_dram_init(void)
+{
+ return dramc_init(&dram_para);
+}
diff --git a/boards.cfg b/boards.cfg
index c3b35b6..692af99 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -454,6 +454,7 @@ Active arm armv7 sunxi -
sunxi
Active arm armv7 sunxi - sunxi
wobo-i5 sun5i:WOBO_I5,SPL,STATUSLED=34
-
Active arm armv7 sunxi - sunxi
xzpad700 sun5i:XZPAD700,SPL
-
Active arm armv7 sunxi - sunxi
zatab sun4i:ZATAB,SPL
-
+Active arm armv7 sunxi - sunxi
OLIMEX-A13-SOM
sun5i:OLIMEX_A13_SOM,SPL,NO_AXP,STATUSLED=201,CONS_INDEX=2
Active arm armv7 u8500 st-ericsson snowball
snowball -
Mathieu Poirier <[email protected]>
Active arm armv7 u8500 st-ericsson u8500
u8500_href -
-
Active arm armv7 vf610 freescale vf610twr
vf610twr
vf610twr:IMX_CONFIG=board/freescale/vf610twr/imximage.cfg
Alison Wang
<[email protected]>
--
2.0.0.rc2
--
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.