From: Albert ARIBAUD Date: Thu, 17 Apr 2014 12:12:14 +0200 Subject: [U-Boot] [PATCH v4] arm: ep9315: Return back Cirrus Logic EDB9315A board support In-Reply-To: <1394126420-7355-1-git-send-email-sergey.kostanbaev@gmail.com> References: <1394126420-7355-1-git-send-email-sergey.kostanbaev@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Sergey, On Thu, 6 Mar 2014 21:20:20 +0400, Sergey Kostanbaev wrote: > diff --git a/arch/arm/cpu/arm920t/ep93xx/lowlevel_init.S b/arch/arm/cpu/arm920t/ep93xx/lowlevel_init.S > index bf2fa2a..3ac0f88 100644 > --- a/arch/arm/cpu/arm920t/ep93xx/lowlevel_init.S > +++ b/arch/arm/cpu/arm920t/ep93xx/lowlevel_init.S > @@ -1,49 +1,456 @@ > /* > * Low-level initialization for EP93xx > * > - * Copyright (C) 2009 Matthias Kaehlcke > + * Copyright (C) 2013 > + * Sergey Kostanabev fairwaves.ru> > * > - * Copyright (C) 2006 Dominic Rath > + * Copyright (C) 2006 Cirrus Logic Inc. Why do you remove existing copyright attributions? > [...] > + * Determine the size of the SDRAM. Use data=address for the scan. > + > + * Input: r0 - Start SDRAM address > + * Return: r0 - Single block size > + * r1 - Valid block mask > + * r2 - Total block count > + * Modifies: r0-r5 > + */ > +ep93xx_sdram_size: Is this needed? Can't the general get_ram_size() function be used? > diff --git a/arch/arm/include/asm/arch-ep93xx/ep93xx.h b/arch/arm/include/asm/arch-ep93xx/ep93xx.h > index 9e7f2f3..71aa601 100644 > --- a/arch/arm/include/asm/arch-ep93xx/ep93xx.h > +++ b/arch/arm/include/asm/arch-ep93xx/ep93xx.h > @@ -580,3 +658,11 @@ struct syscon_regs { > /* > * 0x80950000 - 0x9000FFFF: Reserved > */ > + > +/* > + * During low_level init we store memory layout in memory at specific location > + */ > +#define UBOOT_MEMORYCNF_BANK_SIZE 0x2000 > +#define UBOOT_MEMORYCNF_BANK_MASK 0x2004 > +#define UBOOT_MEMORYCNF_BANK_COUNT 0x2008 > + Remove blank line at EOF. > diff --git a/board/cirrus/edb93xx/u-boot.lds b/board/cirrus/edb93xx/u-boot.lds Does this board need a specific .lds file? > [...] > + /DISCARD/ : { *(.dynsym) } > + /DISCARD/ : { *(.dynstr*) } > + /DISCARD/ : { *(.dynamic*) } > + /DISCARD/ : { *(.plt*) } > + /DISCARD/ : { *(.interp*) } > + /DISCARD/ : { *(.gnu*) } We don't /DISCARD/ these sections any more. If for some reason the generic .lds fils cannot be used, then adapt this one to current practice. Amicalement, -- Albert.