diff options
Diffstat (limited to 'recipes-bsp/u-boot/u-boot/2011.09/0004-OMAP3-Change-mem_ok-to-clear-again-after-reading-bac.patch')
-rw-r--r-- | recipes-bsp/u-boot/u-boot/2011.09/0004-OMAP3-Change-mem_ok-to-clear-again-after-reading-bac.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot/u-boot/2011.09/0004-OMAP3-Change-mem_ok-to-clear-again-after-reading-bac.patch b/recipes-bsp/u-boot/u-boot/2011.09/0004-OMAP3-Change-mem_ok-to-clear-again-after-reading-bac.patch new file mode 100644 index 00000000..30d912c5 --- /dev/null +++ b/recipes-bsp/u-boot/u-boot/2011.09/0004-OMAP3-Change-mem_ok-to-clear-again-after-reading-bac.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 0cf0d611823f6e1f3b63f9233c145a3940a89694 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tom Rini <trini@ti.com> | ||
3 | Date: Fri, 18 Nov 2011 12:48:01 +0000 | ||
4 | Subject: [PATCH 04/21] OMAP3: Change mem_ok to clear again after reading back | ||
5 | |||
6 | It's possible to need to call this function on the same banks multiple | ||
7 | times so we want to be sure that 'pos A' is cleared out again at the | ||
8 | end. | ||
9 | |||
10 | Signed-off-by: Tom Rini <trini@ti.com> | ||
11 | Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> | ||
12 | --- | ||
13 | arch/arm/cpu/armv7/omap3/mem.c | 1 + | ||
14 | 1 files changed, 1 insertions(+), 0 deletions(-) | ||
15 | |||
16 | diff --git a/arch/arm/cpu/armv7/omap3/mem.c b/arch/arm/cpu/armv7/omap3/mem.c | ||
17 | index 2f1efea..2fe5ac7 100644 | ||
18 | --- a/arch/arm/cpu/armv7/omap3/mem.c | ||
19 | +++ b/arch/arm/cpu/armv7/omap3/mem.c | ||
20 | @@ -86,6 +86,7 @@ u32 mem_ok(u32 cs) | ||
21 | writel(0x0, addr + 4); /* remove pattern off the bus */ | ||
22 | val1 = readl(addr + 0x400); /* get pos A value */ | ||
23 | val2 = readl(addr); /* get val2 */ | ||
24 | + writel(0x0, addr + 0x400); /* clear pos A */ | ||
25 | |||
26 | if ((val1 != 0) || (val2 != pattern)) /* see if pos A val changed */ | ||
27 | return 0; | ||
28 | -- | ||
29 | 1.7.2.5 | ||
30 | |||