[U-Boot] [PATCH] MX51: fix mx51evk board, add environment to MMC

Wolfgang Denk wd at denx.de
Tue Oct 19 14:53:44 CEST 2010


Dear Stefano Babic,

In message <1287490415-24200-1-git-send-email-sbabic at 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 <sbabic at denx.de>
> ---
>  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


More information about the U-Boot mailing list