Commit 7b5d61b5 authored by Heiko Schocher's avatar Heiko Schocher Committed by Wolfgang Denk
Browse files

arm, post, memory: fix bug if sdram base != 0x00000000

commit 8d3fcb5e

 breaks post
memory support for sdram base != 0x00000000. Fix this.
Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Cc: Holger Brunck <holger.brunck@keymile.com>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 23d8f778
......@@ -466,10 +466,11 @@ static int memory_post_test_regions(unsigned long start, unsigned long size)
for (i = 0; i < (size >> 20) && (!ret); i++) {
if (!ret)
ret = memory_post_test_patterns(i << 20, 0x800);
if (!ret)
ret = memory_post_test_patterns((i << 20) + 0xff800,
ret = memory_post_test_patterns(start + (i << 20),
0x800);
if (!ret)
ret = memory_post_test_patterns(start + (i << 20) +
0xff800, 0x800);
}
return ret;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment