summaryrefslogtreecommitdiff
path: root/package/boot/uboot-sunxi/patches
diff options
context:
space:
mode:
authorZoltan Herpai <wigyori@uid0.hu>2014-01-11 17:17:17 +0000
committerZoltan Herpai <wigyori@uid0.hu>2014-01-11 17:17:17 +0000
commitf8911b31978371f3f586e249649148142fb9b3e0 (patch)
tree1d8e844f6fe45968caaa8c467059ccc34f7a7c53 /package/boot/uboot-sunxi/patches
parent0e2586a7748385c97062a8d8816c98011175fb3d (diff)
downloadmtk-20170518-f8911b31978371f3f586e249649148142fb9b3e0.zip
mtk-20170518-f8911b31978371f3f586e249649148142fb9b3e0.tar.gz
mtk-20170518-f8911b31978371f3f586e249649148142fb9b3e0.tar.bz2
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
Diffstat (limited to 'package/boot/uboot-sunxi/patches')
-rw-r--r--package/boot/uboot-sunxi/patches/001-a10_olinuxino_lime_support.patch61
1 files changed, 61 insertions, 0 deletions
diff --git a/package/boot/uboot-sunxi/patches/001-a10_olinuxino_lime_support.patch b/package/boot/uboot-sunxi/patches/001-a10_olinuxino_lime_support.patch
new file mode 100644
index 0000000..5fe5c5b
--- /dev/null
+++ b/package/boot/uboot-sunxi/patches/001-a10_olinuxino_lime_support.patch
@@ -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>