Hi guys, excuse me for the mess i created. But this is my first time using git send-email. In the attachment you can find patch.
I am looking for your comments :) ~Best On Sunday, May 18, 2014 4:01:58 PM UTC+3, Димитър Гамишев wrote: > > A13-SOM is Allwinner A13 > based SOM with 512MB DDR3. > There is no AXP PMU. > Hardware: > A13 SoC > uSD card slot > 512MB DDR3 > 4 connectors with 0.05inch step. > > http://olimex.com > Signed-off-by: HeHoPMaJIeH <gamis...@gmail.com> > --- > board/sunxi/Makefile | 1 + > board/sunxi/dram_olimex_a13_som.c | 32 ++++++++++++++++++++++++++++++++ > boards.cfg | 1 + > 3 files changed, 34 insertions(+) > create mode 100644 board/sunxi/dram_olimex_a13_som.c > > diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile > index bd15e16..f2ab627 100644 > --- a/board/sunxi/Makefile > +++ b/board/sunxi/Makefile > @@ -73,3 +73,4 @@ obj-$(CONFIG_WOBO_I5) += dram_wobo_i5.o > obj-$(CONFIG_XZPAD700) += dram_xzpad700.o > obj-$(CONFIG_ZATAB) += dram_zatab.o > obj-$(CONFIG_MERRII_M2) += dram_merrii_m2.o > +obj-$(CONFIG_A13_SOM) += dram_olimex_a13_som.o > diff --git a/board/sunxi/dram_olimex_a13_som.c > b/board/sunxi/dram_olimex_a13_som.c > new file mode 100644 > index 0000000..b6e57e7 > --- /dev/null > +++ b/board/sunxi/dram_olimex_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); > +} > diff --git a/boards.cfg b/boards.cfg > index c3b35b6..692af99 100644 > --- a/boards.cfg > +++ b/boards.cfg > @@ -454,6 +454,7 @@ 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 > OLIMEX-A13-SOM > sun5i:OLIMEX_A13_SOM,SPL,NO_AXP,STATUSLED=201,CONS_INDEX=2 > Active arm armv7 u8500 st-ericsson snowball > snowball - > > Mathieu Poirier <mathieu.poir...@linaro.org> > 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 < > b18...@freescale.com> > -- > 2.0.0.rc2 > > -- 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.
>From d2b97418c10571e24c0b58e54962a5fbfdbc1b1c Mon Sep 17 00:00:00 2001 From: HeHoPMaJIeH <gamis...@gmail.com> Date: Sun, 18 May 2014 15:27:30 +0300 Subject: [PATCH] Add U-Boot support for Olimex's A13-SOM A13-SOM is Allwinner A13 based SOM with 512MB DDR3. There is no AXP PMU. Hardware: A13 SoC uSD card slot 512MB DDR3 4 connectors with 0.05inch step. http://olimex.com Signed-off-by: HeHoPMaJIeH <gamis...@gmail.com> --- board/sunxi/Makefile | 1 + board/sunxi/dram_olimex_a13_som.c | 32 ++++++++++++++++++++++++++++++++ boards.cfg | 1 + 3 files changed, 34 insertions(+) create mode 100644 board/sunxi/dram_olimex_a13_som.c diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile index bd15e16..f2ab627 100644 --- a/board/sunxi/Makefile +++ b/board/sunxi/Makefile @@ -73,3 +73,4 @@ obj-$(CONFIG_WOBO_I5) += dram_wobo_i5.o obj-$(CONFIG_XZPAD700) += dram_xzpad700.o obj-$(CONFIG_ZATAB) += dram_zatab.o obj-$(CONFIG_MERRII_M2) += dram_merrii_m2.o +obj-$(CONFIG_A13_SOM) += dram_olimex_a13_som.o diff --git a/board/sunxi/dram_olimex_a13_som.c b/board/sunxi/dram_olimex_a13_som.c new file mode 100644 index 0000000..b6e57e7 --- /dev/null +++ b/board/sunxi/dram_olimex_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); +} diff --git a/boards.cfg b/boards.cfg index c3b35b6..692af99 100644 --- a/boards.cfg +++ b/boards.cfg @@ -454,6 +454,7 @@ 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 OLIMEX-A13-SOM sun5i:OLIMEX_A13_SOM,SPL,NO_AXP,STATUSLED=201,CONS_INDEX=2 Active arm armv7 u8500 st-ericsson snowball snowball - Mathieu Poirier <mathieu.poir...@linaro.org> 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 <b18...@freescale.com> -- 2.0.0.rc2