From 9629454003a2f85dcff4410e4b56d27e1bde0dd0 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Fri, 27 Sep 2013 19:12:30 +0200 Subject: colibri_vf50: hack to avoid boot hang issue Hack to avoid boot hang issue by just resetting for now if wrong memory size is detected. --- arch/arm/lib/board.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 7dbeda121a..75dcfbc6f4 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -163,6 +163,11 @@ static int display_dram_config(void) for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) size += gd->bd->bi_dram[i].size; + if (size != PHYS_SDRAM_1_SIZE) { + printf("boot hang issue detected "); + do_reset(NULL, 0, 0, NULL); + } + puts("DRAM: "); print_size(size, "\n"); #endif -- cgit v1.2.3