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

Wolfgang Denk wd at denx.de
Tue Oct 19 14:55:00 CEST 2010


Dear Stefano Babic,

In message <1287491115-6312-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>
> ---
> 
> Changes since V1:
> - Dead code not removed
> 
>  board/freescale/mx51evk/mx51evk.c |   20 ++++++++++++++++----
>  include/configs/mx51evk.h         |   27 +++++++++++++++++++++++----
>  2 files changed, 39 insertions(+), 8 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;

Please get rid of the references to CONFIG_SYS_ARM_WITHOUT_RELOC

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
In Nature there are neither rewards nor punishments, there are conse-
quences.                                            -- R.G. Ingersoll


More information about the U-Boot mailing list