uboot-sunxi: add support for Olinuxino A10 LIME

Signed-off-by: Zalan Blenessy <zalan.blenessy@gmail.com>
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>

SVN-Revision: 39221
This commit is contained in:
Zoltan Herpai 2014-01-11 17:17:17 +00:00
parent 0e2586a774
commit f8911b3197
2 changed files with 68 additions and 3 deletions

View File

@ -25,8 +25,12 @@ define uboot/Default
IMAGE:=
endef
define uboot/A10-OLinuXino-Lime
TITLE:=U-Boot 2013.10-rc2 for the A10 OLinuXino LIME
endef
define uboot/A13-OLinuXino
TITLE:=U-Boot 2013.10-rc2 for the A13 Olinuxino
TITLE:=U-Boot 2013.10-rc2 for the A13 OlinuXino
endef
define uboot/Hackberry
@ -42,14 +46,14 @@ define uboot/Cubieboard2
endef
define uboot/A20-OLinuXino_MICRO
TITLE:=U-Boot 2013.10-rc2 for A20 Olinuxino
TITLE:=U-Boot 2013.10-rc2 for A20 OLinuXino MICRO
endef
define uboot/pcDuino
TITLE:=U-Boot 2013.10-rc2 for pcDuino
endef
UBOOTS:=A13-OLinuXino Cubieboard Cubieboard2 A20-OLinuXino_MICRO Hackberry pcDuino
UBOOTS:=A10-OLinuXino-Lime A13-OLinuXino Cubieboard Cubieboard2 A20-OLinuXino_MICRO Hackberry pcDuino
define Package/uboot/template
define Package/uboot-sunxi-$(1)

View File

@ -0,0 +1,61 @@
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index 4c85fe9..61dc9ab 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -31,6 +31,7 @@ LIB := $(obj)lib$(BOARD).o
COBJS-y := board.o
COBJS-$(CONFIG_A10_MID_1GB) += dram_sun4i_360_1024_iow16.o
+COBJS-$(CONFIG_A10_OLINUXINO_L) += dram_a10_olinuxino_l.o
COBJS-$(CONFIG_A10S_OLINUXINO_M) += dram_a10s_olinuxino_m.o
COBJS-$(CONFIG_A13_OLINUXINO) += dram_a13_olinuxino.o
COBJS-$(CONFIG_A13_OLINUXINOM) += dram_a13_oli_micro.o
diff --git a/board/sunxi/dram_a10_olinuxino_l.c b/board/sunxi/dram_a10_olinuxino_l.c
new file mode 100644
index 0000000..31b6542
--- /dev/null
+++ b/board/sunxi/dram_a10_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 = 123,
+ .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/boards.cfg b/boards.cfg
index 24f6a67..94a2c82 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -404,6 +404,7 @@ Active arm armv7 sunxi - sunxi
Active arm armv7 sunxi - sunxi uhost_u1a sun4i:UHOST_U1A,SPL,STATUSLED=34 -
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 A10-OLinuXino-Lime sun4i:A10_OLINUXINO_L,SPL,SUNXI_EMAC -
Active arm armv7 u8500 st-ericsson snowball snowball - Mathieu Poirier <mathieu.poirier@linaro.org>
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 <b18965@freescale.com>