Hi,
On 07/20/2014 05:48 AM, HeHoPMaJIeH wrote:
Added support for
A20-OLinuXino-Lime and A20-OLinuXino-Lime2 boards
also fixed typo in A13-SOM config
Signed-off-by: HeHoPMaJIeH <[email protected]>
Thanks, applied.
Regards,
Hans
---
board/sunxi/Makefile | 5 ++++-
board/sunxi/dram_a20_olinuxino_l.c | 31 +++++++++++++++++++++++++++++++
board/sunxi/dram_a20_olinuxino_l2.c | 31 +++++++++++++++++++++++++++++++
boards.cfg | 2 ++
4 files changed, 68 insertions(+), 1 deletion(-)
create mode 100644 board/sunxi/dram_a20_olinuxino_l.c
create mode 100644 board/sunxi/dram_a20_olinuxino_l2.c
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index 16ad051..5fe92b6 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -76,4 +76,7 @@ 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
+obj-$(CONFIG_OLIMEX_A13_SOM) += dram_olimex_a13_som.o
+obj-$(CONFIG_A20_OLINUXINO_L) += dram_a20_olinuxino_l.o
+obj-$(CONFIG_A20_OLINUXINO_L2) += dram_a20_olinuxino_l2.o
+
diff --git a/board/sunxi/dram_a20_olinuxino_l.c
b/board/sunxi/dram_a20_olinuxino_l.c
new file mode 100644
index 0000000..2c74999
--- /dev/null
+++ b/board/sunxi/dram_a20_olinuxino_l.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 = 480,
+ .type = 3,
+ .rank_num = 1,
+ .density = 4096,
+ .io_width = 16,
+ .bus_width = 16,
+ .cas = 9,
+ .zq = 0x7f,
+ .odt_en = 0,
+ .size = 512,
+ .tpr0 = 0x42d899b7,
+ .tpr1 = 0xa090,
+ .tpr2 = 0x22a00,
+ .tpr3 = 0,
+ .tpr4 = 0,
+ .tpr5 = 0,
+ .emr1 = 0x4,
+ .emr2 = 0x10,
+ .emr3 = 0,
+};
+
+unsigned long sunxi_dram_init(void)
+{
+ return dramc_init(&dram_para);
+}
diff --git a/board/sunxi/dram_a20_olinuxino_l2.c
b/board/sunxi/dram_a20_olinuxino_l2.c
new file mode 100644
index 0000000..e2f3ac7
--- /dev/null
+++ b/board/sunxi/dram_a20_olinuxino_l2.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 = 480,
+ .type = 3,
+ .rank_num = 1,
+ .density = 4096,
+ .io_width = 16,
+ .bus_width = 32,
+ .cas = 9,
+ .zq = 0x7f,
+ .odt_en = 0,
+ .size = 1024,
+ .tpr0 = 0x42d899b7,
+ .tpr1 = 0xa090,
+ .tpr2 = 0x22a00,
+ .tpr3 = 0,
+ .tpr4 = 0,
+ .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 9cb2d4a..997d696 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -458,6 +458,8 @@ Active arm armv7 sunxi -
sunxi
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 sunxi - sunxi
A20-OLinuXino_Lime
sun7i:A20_OLINUXINO_L,CONS_INDEX=1,STATUSLED=226,SPL,SUNXI_EMAC
+Active arm armv7 sunxi - sunxi
A20-OLinuXino_Lime2
sun7i:A20_OLINUXINO_L2,CONS_INDEX=1,STATUSLED=226,SPL,SUNXI_GMAC
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]>
--
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.