ARM platforms don't have a bd->bi_memsize so use bd->bi_dram[0].size instead.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
return tmp;
}
-#ifdef CFG_SDRAM_BASE
+#if defined(CFG_SDRAM_BASE)
return CFG_SDRAM_BASE;
+#elif defined(CONFIG_ARM)
+ return gd->bd->bi_dram[0].start;
#else
return 0;
#endif
return tmp;
}
+#if defined(CONFIG_ARM)
+ return gd->bd->bi_dram[0].size;
+#else
return gd->bd->bi_memsize;
+#endif
}
void memmove_wd (void *to, void *from, size_t len, ulong chunksz)