Again: check the YBKJ A20 JN device page in the wiki and specially my discussion with libv about the name of the device.
-- 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.
>From c108f28ea67a75f69eb141802972a8f2d8dc9c11 Mon Sep 17 00:00:00 2001 From: AndrewDB <[email protected]> Date: Mon, 22 Sep 2014 23:36:27 +0200 Subject: [PATCH] Added device Brown Box A20 --- board/sunxi/Makefile | 1 + board/sunxi/dram_brownbox_a20.c | 31 +++++++++++++++++++++++++++++++ boards.cfg | 1 + 3 files changed, 33 insertions(+) create mode 100644 board/sunxi/dram_brownbox_a20.c diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile index eb612e5..227dff1 100644 --- a/board/sunxi/Makefile +++ b/board/sunxi/Makefile @@ -22,6 +22,7 @@ obj-$(CONFIG_AMPE_A76) += dram_sun5i_432_512_busw16_iow16.o obj-$(CONFIG_AUXTEK_T003) += dram_auxtek_t003.o obj-$(CONFIG_AUXTEK_T004) += dram_sun5i_432_512_busw16_iow16.o obj-$(CONFIG_BA10_TV_BOX) += dram_sun4i_384_1024_iow8.o +obj-$(CONFIG_BROWNBOX_A20) += dram_brownbox_a20.o obj-$(CONFIG_COBY_MID7042) += dram_sun4i_408_1024_iow16.o obj-$(CONFIG_COBY_MID8042) += dram_sun4i_360_1024_iow16.o obj-$(CONFIG_COBY_MID9742) += dram_sun4i_408_1024_iow16.o diff --git a/board/sunxi/dram_brownbox_a20.c b/board/sunxi/dram_brownbox_a20.c new file mode 100644 index 0000000..8afbd91 --- /dev/null +++ b/board/sunxi/dram_brownbox_a20.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 = 0x38d48893, + .tpr1 = 0xa0a0, + .tpr2 = 0x22a00, + .tpr3 = 0x00, + .tpr4 = 0x02, + .tpr5 = 0x00, + .emr1 = 0x04, + .emr2 = 0x10, + .emr3 = 0x00, +}; + +unsigned long sunxi_dram_init(void) +{ + return dramc_init(&dram_para); +} diff --git a/boards.cfg b/boards.cfg index fa2faed..996b50c 100644 --- a/boards.cfg +++ b/boards.cfg @@ -390,6 +390,7 @@ Active arm armv7 sunxi - sunxi Active arm armv7 sunxi - sunxi ba10_tv_box sun4i:BA10_TV_BOX,SPL,SUNXI_EMAC - Active arm armv7 sunxi - sunxi Bananapi sun7i:BANANAPI,SPL,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),STATUSLED=244,STATUSLED1=245,FAST_MBUS - Active arm armv7 sunxi - sunxi Bananapi_FEL sun7i:BANANAPI,SPL_FEL,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),STATUSLED=244,STATUSLED1=245,FAST_MBUS - +Active arm armv7 sunxi - sunxi BrownBox-A20 sun7i:BROWNBOX_A20,SPL,NO_AXP,SUNXI_EMAC,STATUSLED=244 - Active arm armv7 sunxi - sunxi Coby_MID7042 sun4i:COBY_MID7042,SPL - Active arm armv7 sunxi - sunxi Coby_MID8042 sun4i:COBY_MID8042,SPL - Active arm armv7 sunxi - sunxi Coby_MID9742 sun4i:COBY_MID9742,SPL - -- 1.9.1
