On Thu, Jan 16, 2014 at 7:25 AM, Michal Suchanek <[email protected]> wrote:
> Signed-off-by: Michal Suchanek <[email protected]>
> ---
>  board/sunxi/Makefile        |    1 +
>  board/sunxi/dram_inet86vs.c |   29 +++++++++++++++++++++++++++++
>  boards.cfg                  |    2 ++
>  3 files changed, 32 insertions(+)
>  create mode 100644 board/sunxi/dram_inet86vs.c
>
> diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
> index 06037e7..b491bc0 100644
> --- a/board/sunxi/Makefile
> +++ b/board/sunxi/Makefile
> @@ -16,6 +16,7 @@ obj-$(CONFIG_A10S_OLINUXINO_M)        += 
> dram_sun5i_432_512_busw16_iow16.o
>  obj-$(CONFIG_A13_OLINUXINO)    += dram_a13_olinuxino.o
>  obj-$(CONFIG_A13_OLINUXINOM)   += dram_a13_oli_micro.o
>  obj-$(CONFIG_A13_MID)          += dram_sun5i_408_512_busw16_iow8.o
> +obj-$(CONFIG_INET86VS)         += dram_inet86vs.o
>  obj-$(CONFIG_A20_OLINUXINO_L)  += dram_a20_olinuxino_l.o
>  obj-$(CONFIG_A20_OLINUXINO_L2) += dram_a20_olinuxino_l2.o
>  obj-$(CONFIG_A20_OLINUXINO_M)  += dram_sun7i_384_1024_iow16.o
> diff --git a/board/sunxi/dram_inet86vs.c b/board/sunxi/dram_inet86vs.c
> new file mode 100644
> index 0000000..80d1a8e
> --- /dev/null
> +++ b/board/sunxi/dram_inet86vs.c
> @@ -0,0 +1,29 @@
> +/* 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           = 0x56b9697b,
> +       .odt_en       = 0,
> +       .size         = 512,
> +       .tpr0         = 0x42d899b7,
> +       .tpr1         = 0xa090,
> +       .tpr2         = 0x22a00,
> +       .tpr3         = 0x0,
> +       .emr1         = 0x4,
> +       .emr2         = 0x10,
> +       .emr3         = 0x0,
> +};
> +
> +unsigned long sunxi_dram_init(void)
> +{
> +       return dramc_init(&dram_para);
> +}
> diff --git a/boards.cfg b/boards.cfg
> index e7db3b2..d65b4d9 100644
> --- a/boards.cfg
> +++ b/boards.cfg
> @@ -381,6 +381,8 @@ Active  arm         armv7          sunxi       -          
>      sunxi
>  Active  arm         armv7          sunxi       -               sunxi         
>       A13-OLinuXinoM                       
> sun5i:A13_OLINUXINOM,SPL,NO_AXP,STATUSLED=201,CONS_INDEX=2                    
>                                                     -
>  Active  arm         armv7          sunxi       -               sunxi         
>       A13-OLinuXinoM_FEL                   
> sun5i:A13_OLINUXINOM,SPL_FEL,NO_AXP,STATUSLED=201,CONS_INDEX=2                
>                                                     -
>  Active  arm         armv7          sunxi       -               sunxi         
>       A13_MID                              sun5i:A13_MID,SPL,CONS_INDEX=2     
>                                                                               
>                  -
> +Active  arm         armv7          sunxi       -               sunxi         
>       INET86VS                             sun5i:INET86VS,SPL                 
>                                                                               
>                  -
> +Active  arm         armv7          sunxi       -               sunxi         
>       INET86VS_FEL_sdcon                   
> sun5i:INET86VS,SPL_FEL,UART0_PORT_F                                           
>                                                     -

Have you tested this using an SD breakout board?
The A13 does not have UART0 muxed on _any_ pins.

>  Active  arm         armv7          sunxi       -               sunxi         
>       A20-OLinuXino_Lime                   
> sun7i:A20_OLINUXINO_L,CONS_INDEX=1,STATUSLED=226,SPL,SUNXI_EMAC               
>                                                     -
>  Active  arm         armv7          sunxi       -               sunxi         
>       A20-OLinuXino_Lime2                  
> sun7i:A20_OLINUXINO_L2,CONS_INDEX=1,STATUSLED=226,SPL,SUNXI_GMAC              
>                                                     -
>  Active  arm         armv7          sunxi       -               sunxi         
>       A20-OLinuXino_MICRO                  
> sun7i:A20_OLINUXINO_M,CONS_INDEX=1,STATUSLED=226,SPL,SUNXI_EMAC               
>                                                     -
> --
> 1.7.10.4

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