[U-Boot] [PATCH 12/22] ARM sunxi: SPL support for Olimex A13-OLinuXino board

Luka Perkov luka at openwrt.org
Sun Nov 25 16:17:00 CET 2012


Hi Henrik,

On Sun, Nov 25, 2012 at 12:44:40PM +0100, Henrik Nordström wrote:
> Signed-off-by: Henrik Nordstrom <henrik at henriknordstrom.net>
> ---
>  board/sunxi/Makefile             |    1 +
>  board/sunxi/dram_a13_olinuxino.c |   31 +++++++++++++++++++++++++++++++
>  boards.cfg                       |    1 +
>  3 files changed, 33 insertions(+), 0 deletions(-)
>  create mode 100644 board/sunxi/dram_a13_olinuxino.c
> 
> diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
> index 43acbab..0351935 100644
> --- a/board/sunxi/Makefile
> +++ b/board/sunxi/Makefile
> @@ -26,6 +26,7 @@ include $(TOPDIR)/config.mk
>  LIB	:= $(obj)lib$(BOARD).o
>  
>  COBJS-y	:= board.o
> +COBJS-$(CONFIG_A13_OLINUXINO)	+= dram_a13_olinuxino.o
>  
>  COBJS	:= $(COBJS-y)
>  SRCS 	:= $(COBJS:.o=.c)
> diff --git a/board/sunxi/dram_a13_olinuxino.c b/board/sunxi/dram_a13_olinuxino.c
> new file mode 100644
> index 0000000..12b66d9
> --- /dev/null
> +++ b/board/sunxi/dram_a13_olinuxino.c
> @@ -0,0 +1,31 @@
> +/* this file is generated, don't edit it yourself */

How is was file generated ?

Despite the file being generated I think we should add copyrigt on top.

Same goes for all other board files...

> +
> +#include <common.h>
> +#include <asm/arch/dram.h>
> +
> +static struct dram_para dram_para = {
> +	.clock = 408,
> +	.type = 3,
> +	.rank_num = 1,
> +	.density = 2048,
> +	.io_width = 8,
> +	.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,
> +};
> +
> +int sunxi_dram_init(void)
> +{
> +	return dramc_init(&dram_para);
> +}
> diff --git a/boards.cfg b/boards.cfg
> index 13d1f74..0db382d 100644
> --- a/boards.cfg
> +++ b/boards.cfg
> @@ -288,6 +288,7 @@ whistler                     arm         armv7:arm720t whistler          nvidia
>  colibri_t20_iris             arm         armv7:arm720t colibri_t20_iris  toradex        tegra20
>  u8500_href                   arm         armv7       u8500               st-ericsson    u8500
>  snowball                     arm         armv7       snowball               st-ericsson    u8500
> +A13-OLinuXino                arm         armv7       sunxi               -              sunxi       sun5i:A13_OLINUXINO,SPL
>  sun4i                        arm         armv7       sunxi               -              sunxi       sun4i
>  sun4i_sdcon                  arm         armv7       sunxi               -              sunxi       sun4i:UART0_PORT_F
>  sun5i                        arm         armv7       sunxi               -              sunxi       sun5i
> -- 
> 1.7.7.6
> 
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list