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

diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
index ef767e8..07042da 100644
--- a/board/sunxi/Makefile
+++ b/board/sunxi/Makefile
@@ -45,6 +45,7 @@ obj-$(CONFIG_HCORE_HC860)     += dram_sun4i_384_1024_iow16.o
 obj-$(CONFIG_HYUNDAI_A7)       += dram_sun4i_360_512.o
 obj-$(CONFIG_A7HD)             += dram_sun4i_360_1024_iow8.o
 obj-$(CONFIG_I12_TVBOX)                += dram_sun7i_384_1024_iow16.o
+obj-$(CONFIG_ICOU_FATTY_I)     += dram_icou_fatty_i.o
 obj-$(CONFIG_INTERRA3)         += dram_mk802ii_a20.o
 obj-$(CONFIG_INET_86VZ)         += dram_a10s_olinuxino_m.o
 obj-$(CONFIG_INET97F_II)       += dram_sun4i_408_512.o
diff --git a/board/sunxi/dram_icou_fatty_i.c b/board/sunxi/dram_icou_fatty_i.c
new file mode 100644
index 0000000..b06ebc2
--- /dev/null
+++ b/board/sunxi/dram_icou_fatty_i.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 = 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 = 1,
+       .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 24d44c2..0e4a385 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -418,6 +418,7 @@ Active  arm         armv7          sunxi       -            
   sunxi
 Active  arm         armv7          sunxi       -               sunxi           
    Hyundai_A7                           sun4i:HYUNDAI_A7,SPL                   
                                                                                
           -
 Active  arm         armv7          sunxi       -               sunxi           
    Hyundai_A7HD                         sun4i:A7HD,SPL                         
                                                                                
           -
 Active  arm         armv7          sunxi       -               sunxi           
    i12-tvbox                            
sun7i:I12_TVBOX,SPL,FAST_MBUS,STATUSLED=244                                     
                                                  -
+Active  arm         armv7          sunxi       -               sunxi           
    ICOU_Fatty_I                         sun7i:ICOU_FATTY_I,SPL                 
                                                                                
           -
 Active  arm         armv7          sunxi       -               sunxi           
    Interra-3                            
sun7i:INTERRA3,SPL,SUNXI_GMAC,FAST_MBUS,MMC_SUNXI_SLOT=2                        
                                                  -
 Active  arm         armv7          sunxi       -               sunxi           
    INet_86VZ                            sun5i:INET_86VZ,SPL                    
                                                                                
          -
 Active  arm         armv7          sunxi       -               sunxi           
    INet_86VZ_FEL                        sun5i:INET_86VZ,SPL_FEL,UART0_PORT_F   
                                                                                
           -
-- 
1.7.9.5

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