Hi All,
this patch adds u-boot support for a13-som boards by Olimex

diff --git board/sunxi/Makefile board/sunxi/Makefile
index 99445bf..0b57707 100644
--- board/sunxi/Makefile
+++ board/sunxi/Makefile
@@ -72,3 +72,4 @@ obj-$(CONFIG_WEXLER_TAB_7200) += dram_wexler_tab_7200.o
 obj-$(CONFIG_WOBO_I5) += dram_wobo_i5.o
 obj-$(CONFIG_XZPAD700) += dram_xzpad700.o
 obj-$(CONFIG_ZATAB) += dram_zatab.o
+obj-$(CONFIG_A13_SOM)          += dram_a13_som.o
diff --git boards.cfg boards.cfg
index d3a1e50..25c2cda 100644
--- boards.cfg
+++ boards.cfg
@@ -453,6 +453,8 @@ Active  arm         armv7          sunxi       -       
        sunxi
 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       
        zatab                                sun4i:ZATAB,SPL               
                                                                            
                        -
+Active  arm         armv7          sunxi       -               sunxi       
        a13-som                             
sun5i:A13_SOM,SPL,NO_AXP,STATUSLED=201,CONS_IN
+   - 
 Active  arm         armv7          u8500       st-ericsson     snowball   
         snowball                             -                             
                                                                            
                        Mathieu Poirier <[email protected]>
 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 
<[email protected]>
new file mode 100644
index 0000000..b6e57e7
--- /dev/null
+++ b/board/sunxi/dram_a13_som.c
@@ -0,0 +1,32 @@
+/* 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 = 123,
+       .odt_en = 0,
+       .size = 512,
+       .tpr0 = 0x42d899b7,
+       .tpr1 = 0xa090,
+       .tpr2 = 0x22a00,
+       .tpr3 = 0,
+       .tpr4 = 0,
+       .tpr5 = 0,
+       .emr1 = 0,
+       .emr2 = 0x10,
+       .emr3 = 0,
+
+};
+
+unsigned long sunxi_dram_init(void)
+{
+       return dramc_init(&dram_para);
+}

-- 
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.
diff --git board/sunxi/Makefile board/sunxi/Makefile
index 99445bf..0b57707 100644
--- board/sunxi/Makefile
+++ board/sunxi/Makefile
@@ -72,3 +72,4 @@ obj-$(CONFIG_WEXLER_TAB_7200)	+= dram_wexler_tab_7200.o
 obj-$(CONFIG_WOBO_I5)		+= dram_wobo_i5.o
 obj-$(CONFIG_XZPAD700)	+= dram_xzpad700.o
 obj-$(CONFIG_ZATAB)		+= dram_zatab.o
+obj-$(CONFIG_A13_SOM)          += dram_a13_som.o
diff --git boards.cfg boards.cfg
index d3a1e50..25c2cda 100644
--- boards.cfg
+++ boards.cfg
@@ -453,6 +453,8 @@ Active  arm         armv7          sunxi       -               sunxi
 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               zatab                                sun4i:ZATAB,SPL                                                                                                                   -
+Active  arm         armv7          sunxi       -               sunxi               a13-som                             sun5i:A13_SOM,SPL,NO_AXP,STATUSLED=201,CONS_IN
+										   -					
 Active  arm         armv7          u8500       st-ericsson     snowball            snowball                             -                                                                                                                                 Mathieu Poirier <[email protected]>
 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 <[email protected]>
new file mode 100644
index 0000000..b6e57e7
--- /dev/null
+++ b/board/sunxi/dram_a13_som.c
@@ -0,0 +1,32 @@
+/* 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 = 123,
+       .odt_en = 0,
+       .size = 512,
+       .tpr0 = 0x42d899b7,
+       .tpr1 = 0xa090,
+       .tpr2 = 0x22a00,
+       .tpr3 = 0,
+       .tpr4 = 0,
+       .tpr5 = 0,
+       .emr1 = 0,
+       .emr2 = 0x10,
+       .emr3 = 0,
+
+};
+
+unsigned long sunxi_dram_init(void)
+{
+       return dramc_init(&dram_para);
+}

Reply via email to