Hi,

this is the new board patch created as per

http://linux-sunxi.org/U-Boot#Adding_a_new_device_to_U-Boot

-- 
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 3d6123709d6424ed8903fb2c855368ff0aec68d2 Mon Sep 17 00:00:00 2001
From: Rajesh Kumar Mallah <[email protected]>
Date: Sat, 5 Apr 2014 20:42:53 +0530
Subject: [PATCH] Added support for Tena TV-BOX B133 board

---
 board/sunxi/Makefile                    |    1 +
 board/sunxi/dram_sun7i_432_1024_iow16.c |   31 +++++++++++++++++++++++++++++++
 boards.cfg                              |    1 +
 3 files changed, 33 insertions(+)
 create mode 100644 board/sunxi/dram_sun7i_432_1024_iow16.c

diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index bed033b..b7bedf1 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -19,6 +19,7 @@ obj-$(CONFIG_A20_OLINUXINO_M)	+= dram_sun7i_384_1024_iow16.o
 obj-$(CONFIG_AUXTEK_T003)	+= dram_auxtek_t003.o
 # This is not a typo, uses the same mem settings as the a10s-olinuxino-m
 obj-$(CONFIG_AUXTEK_T004)	+= dram_a10s_olinuxino_m.o
+obj-$(CONFIG_B133_TV_BOX)	+= dram_sun7i_432_1024_iow16.o
 obj-$(CONFIG_BA10_TV_BOX)	+= dram_sun4i_384_1024_iow8.o
 obj-$(CONFIG_COBY_MID7042)	+= dram_sun4i_408_1024_iow16.o
 obj-$(CONFIG_COBY_MID8042)	+= dram_sun4i_360_1024_iow16.o
diff --git a/board/sunxi/dram_sun7i_432_1024_iow16.c b/board/sunxi/dram_sun7i_432_1024_iow16.c
new file mode 100644
index 0000000..19b8b74
--- /dev/null
+++ b/board/sunxi/dram_sun7i_432_1024_iow16.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 = 432,
+	.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 f1a5d07..fcfbc4e 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -381,6 +381,7 @@ Active  arm         armv7          sunxi       -               sunxi
 Active  arm         armv7          sunxi       -               sunxi               Auxtek-T003                          sun5i:AUXTEK_T003,SPL,AXP152_POWER,STATUSLED=34                                                                                   -
 Active  arm         armv7          sunxi       -               sunxi               Auxtek-T004                          sun5i:AUXTEK_T004,SPL,AXP152_POWER,STATUSLED=34                                                                                   -
 Active  arm         armv7          sunxi       -               sunxi               ba10_tv_box                          sun4i:BA10_TV_BOX,SPL,SUNXI_EMAC                                                                                                  -
+Active  arm         armv7          sunxi       -               sunxi               b133_tv_box                          sun7i:B133_TV_BOX,SPL,SUNXI_EMAC                                                                                                  "Rajesh Mallah"<[email protected]>
 Active  arm         armv7          sunxi       -               sunxi               Coby_MID7042                         sun4i:COBY_MID7042,SPL                                                                                                            -
 Active  arm         armv7          sunxi       -               sunxi               Coby_MID8042                         sun4i:COBY_MID8042,SPL                                                                                                            -
 Active  arm         armv7          sunxi       -               sunxi               Coby_MID9742                         sun4i:COBY_MID9742,SPL                                                                                                            -
-- 
1.7.9.5

Reply via email to