mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-27 23:21:01 +00:00
OMAP3: Change mem_ok to clear again after reading back
It's possible to need to call this function on the same banks multiple times so we want to be sure that 'pos A' is cleared out again at the end. Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
2a04e85870
commit
3bd8437dcc
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ u32 mem_ok(u32 cs)
|
|||
writel(0x0, addr + 4); /* remove pattern off the bus */
|
||||
val1 = readl(addr + 0x400); /* get pos A value */
|
||||
val2 = readl(addr); /* get val2 */
|
||||
writel(0x0, addr + 0x400); /* clear pos A */
|
||||
|
||||
if ((val1 != 0) || (val2 != pattern)) /* see if pos A val changed */
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue