Signed-off-by: Michal Suchanek <[email protected]>
---
 board/sunxi/Makefile     |    1 +
 board/sunxi/dram_a86v4.c |   29 +++++++++++++++++++++++++++++
 boards.cfg               |    1 +
 3 files changed, 31 insertions(+)
 create mode 100644 board/sunxi/dram_a86v4.c

diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index b491bc0..049e315 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -17,6 +17,7 @@ obj-$(CONFIG_A13_OLINUXINO)   += dram_a13_olinuxino.o
 obj-$(CONFIG_A13_OLINUXINOM)   += dram_a13_oli_micro.o
 obj-$(CONFIG_A13_MID)          += dram_sun5i_408_512_busw16_iow8.o
 obj-$(CONFIG_INET86VS)         += dram_inet86vs.o
+obj-$(CONFIG_A86V4)            += dram_a86v4.o
 obj-$(CONFIG_A20_OLINUXINO_L)  += dram_a20_olinuxino_l.o
 obj-$(CONFIG_A20_OLINUXINO_L2) += dram_a20_olinuxino_l2.o
 obj-$(CONFIG_A20_OLINUXINO_M)  += dram_sun7i_384_1024_iow16.o
diff --git a/board/sunxi/dram_a86v4.c b/board/sunxi/dram_a86v4.c
new file mode 100644
index 0000000..ed9459e
--- /dev/null
+++ b/board/sunxi/dram_a86v4.c
@@ -0,0 +1,29 @@
+/* this file is generated, don't edit it yourself */
+
+#include <common.h>
+#include <asm/arch/dram.h>
+
+static struct dram_para dram_para = {
+       .clock        = 408,
+       .type         = 3,
+       .rank_num     = 1,
+       .density      = 4096,
+       .io_width     = 16,
+       .bus_width    = 16,
+       .cas          = 9,
+       .zq           = 0x7b,
+       .odt_en       = 0,
+       .size         = 512,
+       .tpr0         = 0x42d899b7,
+       .tpr1         = 0xa090,
+       .tpr2         = 0x22a00,
+       .tpr3         = 0x0,
+       .emr1         = 0x0,
+       .emr2         = 0x10,
+       .emr3         = 0x0,
+};
+
+unsigned long sunxi_dram_init(void)
+{
+       return dramc_init(&dram_para);
+}
diff --git a/boards.cfg b/boards.cfg
index d65b4d9..525d8a2 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -381,6 +381,7 @@ Active  arm         armv7          sunxi       -            
   sunxi
 Active  arm         armv7          sunxi       -               sunxi           
    A13-OLinuXinoM                       
sun5i:A13_OLINUXINOM,SPL,NO_AXP,STATUSLED=201,CONS_INDEX=2                      
                                                  -
 Active  arm         armv7          sunxi       -               sunxi           
    A13-OLinuXinoM_FEL                   
sun5i:A13_OLINUXINOM,SPL_FEL,NO_AXP,STATUSLED=201,CONS_INDEX=2                  
                                                  -
 Active  arm         armv7          sunxi       -               sunxi           
    A13_MID                              sun5i:A13_MID,SPL,CONS_INDEX=2         
                                                                                
           -
+Active  arm         armv7          sunxi       -               sunxi           
    A86V4                                sun5i:A86V4,SPL                        
                                                                                
           -
 Active  arm         armv7          sunxi       -               sunxi           
    INET86VS                             sun5i:INET86VS,SPL                     
                                                                                
           -
 Active  arm         armv7          sunxi       -               sunxi           
    INET86VS_FEL_sdcon                   sun5i:INET86VS,SPL_FEL,UART0_PORT_F    
                                                                                
           -
 Active  arm         armv7          sunxi       -               sunxi           
    A20-OLinuXino_Lime                   
sun7i:A20_OLINUXINO_L,CONS_INDEX=1,STATUSLED=226,SPL,SUNXI_EMAC                 
                                                  -
-- 
1.7.10.4

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