From: Wolfgang Denk Date: Tue, 19 Oct 2010 14:53:44 +0200 Subject: [U-Boot] [PATCH] MX51: fix mx51evk board, add environment to MMC In-Reply-To: <1287490415-24200-1-git-send-email-sbabic@denx.de> References: <1287490415-24200-1-git-send-email-sbabic@denx.de> Message-ID: <20101019125344.DC019136320@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Stefano Babic, In message <1287490415-24200-1-git-send-email-sbabic@denx.de> you wrote: > The patch fixes the compilation of the mx51evk board > with the actual u-boot release and stores the > environment into the MMC card. > > Signed-off-by: Stefano Babic > --- > board/freescale/mx51evk/mx51evk.c | 20 ++++++++++++++++---- > include/configs/mx51evk.h | 37 ++++++++++++++++++++++++++++++++++--- > 2 files changed, 50 insertions(+), 7 deletions(-) > > diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c > index c8d7d39..d6bb71c 100644 > --- a/board/freescale/mx51evk/mx51evk.c > +++ b/board/freescale/mx51evk/mx51evk.c > @@ -52,9 +52,14 @@ u32 get_board_rev(void) > > int dram_init(void) > { > +#ifdef CONFIG_SYS_ARM_WITHOUT_RELOC > gd->bd->bi_dram[0].start = PHYS_SDRAM_1; > gd->bd->bi_dram[0].size = get_ram_size((long *)PHYS_SDRAM_1, > PHYS_SDRAM_1_SIZE); > +#else > + gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, > + PHYS_SDRAM_1_SIZE); > +#endif > return 0; > } We should not support the CONFIG_SYS_ARM_WITHOUT_RELOC compatibility mode any longer than absolutely necessary. If the other code works, then please remove the "#ifdef CONFIG_SYS_ARM_WITHOUT_RELOC" parts. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de It is better to marry than to burn. - Bible ``I Corinthians'' ch. 7, v. 9