aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2013-12-06 16:04:49 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2014-02-27 11:18:28 +0000
commit14278813a6497f0d7b94ce0e4b7eaa4d47a80bb7 (patch)
treec14a5b4b3b1cc256e2c59d7ce9f2702b2d8297ec
parent45379c0f9cf812f0f62722f4015ec907fa5dc144 (diff)
downloadu-boot-wip/psci.tar.gz
sunxi: add support for A20 based rsh-a10-d-a20wip/psci
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rw-r--r--board/sunxi/Makefile1
-rw-r--r--board/sunxi/dram_rsh_a10-d_a20.c31
-rw-r--r--boards.cfg1
3 files changed, 33 insertions, 0 deletions
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index aed89be0e3..0a86285244 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -78,6 +78,7 @@ obj-$(CONFIG_PENGPOD1000) += dram_sun4i_408_1024_iow16.o
obj-$(CONFIG_POV_PROTAB2) += dram_pov_protab2.o
obj-$(CONFIG_POV_PROTAB2_XXL) += dram_pov_protab2_xxl.o
obj-$(CONFIG_R7DONGLE) += dram_r7dongle.o
+obj-$(CONFIG_RSH_A10_D_A20) += dram_rsh_a10-d_a20.o
obj-$(CONFIG_SANEI_N90) += dram_sanei_n90.o
obj-$(CONFIG_UHOST_U1A) += dram_sun4i_360_1024_iow8.o
obj-$(CONFIG_WOBO_I5) += dram_wobo_i5.o
diff --git a/board/sunxi/dram_rsh_a10-d_a20.c b/board/sunxi/dram_rsh_a10-d_a20.c
new file mode 100644
index 0000000000..04e4b1e9b9
--- /dev/null
+++ b/board/sunxi/dram_rsh_a10-d_a20.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 = 384,
+ .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 7b9e31c097..2c9b36d986 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -419,6 +419,7 @@ Active arm armv7 sunxi - sunxi
Active arm armv7 sunxi - sunxi PoV_ProTab2_IPS_3g sun4i:POV_PROTAB2,SPL -
Active arm armv7 sunxi - sunxi PoV_ProTab2_XXL sun4i:POV_PROTAB2_XXL,SPL -
Active arm armv7 sunxi - sunxi r7-tv-dongle sun5i:R7DONGLE,SPL,AXP152_POWER,STATUSLED=34 -
+Active arm armv7 sunxi - sunxi rsh-a10-d-a20 sun7i:RSH_A10_D_A20,SPL,SUNXI_EMAC,STATUSLED=244
Active arm armv7 sunxi - sunxi Sanei_N90 sun4i:SANEI_N90,SPL -
Active arm armv7 sunxi - sunxi sun4i sun4i:SUNXI_EMAC -
Active arm armv7 sunxi - sunxi sun4i_sdcon sun4i:UART0_PORT_F,SUNXI_EMAC -