--
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.
>From 4d71dbc426af1568c3e4d6da0c35a0ce3a30725e Mon Sep 17 00:00:00 2001
From: jason <[email protected]>
Date: Sun, 14 Sep 2014 15:18:49 +0100
Subject: [PATCH] Added support for a20 version of Jesurun A19 media player
---
board/sunxi/Makefile | 1 +
board/sunxi/dram_rsh_a19_d.c | 31 +++++++++++++++++++++++++++++++
boards.cfg | 1 +
3 files changed, 33 insertions(+)
create mode 100644 board/sunxi/dram_rsh_a19_d.c
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index af4a08f..0b60242 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -85,6 +85,7 @@ obj-$(CONFIG_POV_PROTAB2_XXL) += dram_pov_protab2_xxl.o
obj-$(CONFIG_PRESTIGIO_PMP3670B) += dram_sun5i_408_512_busw16_iow16.o
obj-$(CONFIG_QT840A) += dram_sun7i_384_512_busw16_iow16.o
obj-$(CONFIG_R7DONGLE) += dram_r7dongle.o
+obj-$(CONFIG_RSH_A19_D) += dram_rsh_a19_d.o
obj-$(CONFIG_SANEI_N90) += dram_sanei_n90.o
obj-$(CONFIG_SEMITIME_G2) += dram_semitime_g2.o
obj-$(CONFIG_TZX_Q8_713B6) += dram_sun5i_408_512_busw16_iow8.o
diff --git a/board/sunxi/dram_rsh_a19_d.c b/board/sunxi/dram_rsh_a19_d.c
new file mode 100644
index 0000000..3198c97
--- /dev/null
+++ b/board/sunxi/dram_rsh_a19_d.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 = 360,
+ .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 = 0x00,
+ .tpr4 = 0x02,
+ .tpr5 = 0x00,
+ .emr1 = 0x04,
+ .emr2 = 0x10,
+ .emr3 = 0x00,
+};
+
+unsigned long sunxi_dram_init(void)
+{
+ return dramc_init(&dram_para);
+}
diff --git a/boards.cfg b/boards.cfg
index 00ae148..1f2eabe 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -465,6 +465,7 @@ Active arm armv7 sunxi - sunxi
Active arm armv7 sunxi - sunxi prestigio_pmp3670b sun5i:PRESTIGIO_PMP3670B,SPL -
Active arm armv7 sunxi - sunxi qt840a sun7i:QT840A,SPL,FAST_MBUS,STATUSLED=244 -
Active arm armv7 sunxi - sunxi r7-tv-dongle sun5i:R7DONGLE,SPL,AXP152_POWER,STATUSLED=34 -
+Active arm armv7 sunxi - sunxi RSH_A19_D sun7i:RSH_A19_D,SPL,STATUSLED=244,STATUSLED1=245 -
Active arm armv7 sunxi - sunxi Sanei_N90 sun4i:SANEI_N90,SPL -
Active arm armv7 sunxi - sunxi Semitime_G2 sun5i:SEMITIME_G2,SPL,AXP152_POWER,STATUSLED=34 -
Active arm armv7 sunxi - sunxi sun4i sun4i:SUNXI_EMAC -
--
1.9.1