This patchset adds u-boot support for pcDuino3. The board
has been stress-tested for clock=480 and FAST_MBUS, and
has proven to be stable so far.

Signed-off-by: Zoltan HERPAI <wigy...@uid0.hu>
---
 board/sunxi/Makefile                   |    1 +
 board/sunxi/dram_linksprite_pcduino3.c |   31 +++++++++++++++++++++++++++++++
 boards.cfg                             |    1 +
 3 files changed, 33 insertions(+)
 create mode 100644 board/sunxi/dram_linksprite_pcduino3.c

diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index bd15e16..5711ab8 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -47,6 +47,7 @@ obj-$(CONFIG_ITEADA10)                += dram_cubieboard.o
 obj-$(CONFIG_ITEADA20)         += dram_cubieboard2.o
 obj-$(CONFIG_JESURUN_Q5)       += dram_sun4i_312_1024_iow8.o
 obj-$(CONFIG_K1001L1C) += dram_a20_olinuxino_m.o
+obj-$(CONFIG_LINKSPRITE_PCDUINO3)      += dram_linksprite_pcduino3.o
 obj-$(CONFIG_MEFAFEIS_A08)     += dram_megafeis_a08.o
 obj-$(CONFIG_MELE_A1000)       += dram_sun4i_360_512.o
 obj-$(CONFIG_MELE_A1000G)      += dram_sun4i_360_1024_iow8.o
diff --git a/board/sunxi/dram_linksprite_pcduino3.c 
b/board/sunxi/dram_linksprite_pcduino3.c
new file mode 100644
index 0000000..9cc6e19
--- /dev/null
+++ b/board/sunxi/dram_linksprite_pcduino3.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 = 32,
+       .cas = 9,
+       .zq = 0x7a,
+       .odt_en = 0,
+       .size = 1024,
+       .tpr0 = 0x42d899b7,
+       .tpr1 = 0xa090,
+       .tpr2 = 0x22a00,
+       .tpr3 = 0,
+       .tpr4 = 0,
+       .tpr5 = 0,
+       .emr1 = 0x4,
+       .emr2 = 0x10,
+       .emr3 = 0x0,
+};
+
+unsigned long sunxi_dram_init(void)
+{
+       return dramc_init(&dram_para);
+}
diff --git a/boards.cfg b/boards.cfg
index c3b35b6..e45a069 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -418,6 +418,7 @@ Active  arm         armv7          sunxi       -            
   sunxi
 Active  arm         armv7          sunxi       -               sunxi           
    INet_K70HC                           sun7i:INET_K70HC,SPL                   
                                                                                
           -
 Active  arm         armv7          sunxi       -               sunxi           
    Jesurun-Q5                           
sun4i:JESURUN_Q5,SPL,SUNXI_EMAC,STATUSLED=244                                   
                                                  -
 Active  arm         armv7          sunxi       -               sunxi           
    K1001L1C                             sun7i:K1001L1C,SPL                     
                                                                                
           -
+Active  arm         armv7          sunxi       -               sunxi           
    Linksprite_pcDuino3                  
sun7i:LINKSPRITE_PCDUINO3,SPL,SUNXI_GMAC,FAST_MBUS                              
                                                  -
 Active  arm         armv7          sunxi       -               sunxi           
    Marsboard_A10                        
sun4i:MARSBOARD_A10,SPL,SUNXI_EMAC,NO_AXP                                       
                                                  -
 Active  arm         armv7          sunxi       -               sunxi           
    Marsboard_A20                        
sun7i:MARSBOARD_A20,SPL,SUNXI_EMAC,NO_AXP                                       
                                                  -
 Active  arm         armv7          sunxi       -               sunxi           
    Marsboard_A20_debug                  
sun7i:MARSBOARD_A20,SPL,SUNXI_EMAC,NO_AXP,SYS_SECONDARY_ON                      
                                                  -
-- 
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 linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to