The matching FEX can be found here: 
 https://github.com/linux-sunxi/sunxi-boards/pull/34
This is for this wiki page: http://linux-sunxi.org/TXCZ_A20

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

diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index af4a08f..e441718 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -87,6 +87,7 @@ obj-$(CONFIG_QT840A) += dram_sun7i_384_512_busw16_iow16.o
 obj-$(CONFIG_R7DONGLE) += dram_r7dongle.o
 obj-$(CONFIG_SANEI_N90) += dram_sanei_n90.o
 obj-$(CONFIG_SEMITIME_G2) += dram_semitime_g2.o
+obj-$(CONFIG_TXCZ_A20_V1) += dram_txcz_a20_v1.o
 obj-$(CONFIG_TZX_Q8_713B6) += dram_sun5i_408_512_busw16_iow8.o
 obj-$(CONFIG_TZX_Q8_713B7) += dram_sun5i_408_512_busw16_iow8.o
 obj-$(CONFIG_UHOST_U1A) += dram_sun4i_360_1024_iow8.o
diff --git a/board/sunxi/dram_txcz_a20_v1.c b/board/sunxi/dram_txcz_a20_v1.c
new file mode 100644
index 0000000..565dddc
--- /dev/null
+++ b/board/sunxi/dram_txcz_a20_v1.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 = 2048,
+ .io_width = 16,
+ .bus_width = 32,
+ .cas = 9,
+ .zq = 0x7f,
+ .odt_en = 0,
+ .size = 512,
+ .tpr0 = 0x38d48893,
+ .tpr1 = 0xa0a0,
+ .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 00ae148..ee9ebe9 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -472,6 +472,7 @@ Active  arm         armv7          sunxi       -       
        sunxi
 Active  arm         armv7          sunxi       -               sunxi       
        sun5i                                sun5i:SUNXI_EMAC               
                                                                            
                       -
 Active  arm         armv7          sunxi       -               sunxi       
        sun5i_sdcon                          sun5i:UART0_PORT_F,SUNXI_EMAC 
                                                                            
                        -
 Active  arm         armv7          sunxi       -               sunxi       
        sun5i_uart1                          sun5i:CONS_INDEX=2,SUNXI_EMAC 
                                                                            
                        -
+Active  arm         armv7          sunxi       -               sunxi       
        TXCZ_A20_V1                          sun7i:TXCZ_A20_V1,SPL         
                                                                            
                       -
 Active  arm         armv7          sunxi       -               sunxi       
        TZX-Q8-713B6                         
sun5i:TZX_Q8_713B6,SPL,CONS_INDEX=2                                         
                                                      -
 Active  arm         armv7          sunxi       -               sunxi       
        TZX-Q8-713B7                         
sun5i:TZX_Q8_713B7,SPL,CONS_INDEX=2                                         
                                                      -
 Active  arm         armv7          sunxi       -               sunxi       
        uhost_u1a                           
 sun4i:UHOST_U1A,SPL,STATUSLED=34                                           
                                                       -
-- 
1.9.1

-- 
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.

Reply via email to