summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2011-11-18 12:48:01 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-12-06 23:59:38 +0100
commit3bd8437dcce211bba51b306a9b71f9eec4a474c2 (patch)
tree9ae6c3620f7e8885d1d1478230cb798d5bb3dc6a /arch/arm
parent2a04e85870de089018e40828a5238cc413089007 (diff)
downloadu-boot-imx-3bd8437dcce211bba51b306a9b71f9eec4a474c2.zip
u-boot-imx-3bd8437dcce211bba51b306a9b71f9eec4a474c2.tar.gz
u-boot-imx-3bd8437dcce211bba51b306a9b71f9eec4a474c2.tar.bz2
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/omap3/mem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap3/mem.c b/arch/arm/cpu/armv7/omap3/mem.c
index 2f1efea..2fe5ac7 100644
--- a/arch/arm/cpu/armv7/omap3/mem.c
+++ b/arch/arm/cpu/armv7/omap3/mem.c
@@ -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;