
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 sbabic@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