Skip to content

Commit

Permalink
sunxi: Add Cubieboard2 (A20 on Cubieboard rev 2012-09-09)
Browse files Browse the repository at this point in the history
dram_para is taken from script.bin/dmesg on Android 4.2 image
  • Loading branch information
FUKAUMI Naoki committed Jun 16, 2013
1 parent de35fe8 commit 2900a98
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions board/sunxi/Makefile
Expand Up @@ -42,6 +42,7 @@ COBJS-$(CONFIG_COBY_MID8042) += dram_sun4i_360_1024_iow16.o
COBJS-$(CONFIG_COBY_MID9742) += dram_sun4i_408_1024_iow16.o
COBJS-$(CONFIG_CUBIEBOARD) += dram_cubieboard.o
COBJS-$(CONFIG_CUBIEBOARD_512) += dram_cubieboard_512.o
COBJS-$(CONFIG_CUBIEBOARD2) += dram_cubieboard2.o
COBJS-$(CONFIG_DNS_M82) += dram_sun4i_360_1024_iow16.o
COBJS-$(CONFIG_EOMA68_A10) += dram_sun4i_360_1024_iow8.o
COBJS-$(CONFIG_EOMA68_A20) += dram_eoma68_a20.o
Expand Down
31 changes: 31 additions & 0 deletions board/sunxi/dram_cubieboard2.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 = 0x7f,
.odt_en = 0,
.size = 1024,
.tpr0 = 0x42d899b7,
.tpr1 = 0xa090,
.tpr2 = 0x22a00,
.tpr3 = 0x0,
.tpr4 = 0x1,
.tpr5 = 0x0,
.emr1 = 0x4,
.emr2 = 0x10,
.emr3 = 0x0,
};

int sunxi_dram_init(void)
{
return dramc_init(&dram_para);
}
2 changes: 2 additions & 0 deletions boards.cfg
Expand Up @@ -348,6 +348,8 @@ Coby_MID9742 arm armv7 sunxi -
Cubieboard arm armv7 sunxi - sunxi sun4i:CUBIEBOARD,SPL,SUNXI_EMAC,STATUSLED=244
Cubieboard_FEL arm armv7 sunxi - sunxi sun4i:CUBIEBOARD,SPL_FEL,SUNXI_EMAC,STATUSLED=244
Cubieboard_512 arm armv7 sunxi - sunxi sun4i:CUBIEBOARD_512,SPL,SUNXI_EMAC,STATUSLED=244
Cubieboard2 arm armv7 sunxi - sunxi sun7i:CUBIEBOARD2,SPL,SUNXI_EMAC,STATUSLED=244
Cubieboard2_FEL arm armv7 sunxi - sunxi sun7i:CUBIEBOARD2,SPL_FEL,SUNXI_EMAC,STATUSLED=244
DNS_M82 arm armv7 sunxi - sunxi sun4i:DNS_M82,SPL
EOMA68_A10 arm armv7 sunxi - sunxi sun4i:EOMA68_A10,SPL,MMC_SUNXI_SLOT=3
EOMA68_A10_SPL arm armv7 sunxi - sunxi sun4i:EOMA68_A10,SPL_FEL,MMC_SUNXI_SLOT=3
Expand Down

0 comments on commit 2900a98

Please sign in to comment.