summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-09-27 19:12:30 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-09-27 19:12:30 +0200
commit9629454003a2f85dcff4410e4b56d27e1bde0dd0 (patch)
treec036ad61562438b964a632ba47c809f7bbbc96a3
parent2f9748a9931465fd64a5f91c15aa5e94a6feae3e (diff)
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.
-rw-r--r--arch/arm/lib/board.c5
1 files changed, 5 insertions, 0 deletions
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