Skip to content

Commit

Permalink
arm, post, memory: fix bug if sdram base != 0x00000000
Browse files Browse the repository at this point in the history
commit 8d3fcb5 breaks post
memory support for sdram base != 0x00000000. Fix this.

Signed-off-by: Heiko Schocher <[email protected]>
Cc: Valentin Longchamp <[email protected]>
Cc: Holger Brunck <[email protected]>
Acked-by: Mike Frysinger <[email protected]>
  • Loading branch information
hsdenx authored and wdenx committed Oct 23, 2011
1 parent 23d8f77 commit 7b5d61b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions post/drivers/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7b5d61b

Please sign in to comment.