summaryrefslogtreecommitdiff
path: root/arch/arm/lib/cache.c
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2010-10-20 22:00:00 -0700
committerSandeep Paulraj <s-paulraj@ti.com>2010-11-04 15:27:02 -0400
commit8345fb242c952b2bb993ac43ecc53eac0108f80c (patch)
tree2ae3cafd920d6b3ad2f1077c3c7b1886518db42d /arch/arm/lib/cache.c
parenta711edfae15cdf91b14bfb81e403230fa06c544d (diff)
downloadu-boot-imx-8345fb242c952b2bb993ac43ecc53eac0108f80c.zip
u-boot-imx-8345fb242c952b2bb993ac43ecc53eac0108f80c.tar.gz
u-boot-imx-8345fb242c952b2bb993ac43ecc53eac0108f80c.tar.bz2
ARMV7: Fix build for non-OMAP3 boards
Commit c3d3a54 uses CONFIG_ARMV7 to determine whether to call the v7_flush_cache_all function. This breaks the build for all non-OMAP3 boards (like Panda and OMAP4430SDP) since there is only a v7_flush_cache_all implementation for OMAP3. This patch uses CONFIG_OMAP3XXX instead of CONFIG_ARMV7 so that only boards with a v7_flush_cache_all will make the call. Tested on Beagle, Overo, Panda, and OMAP4430SDP Signed-off-by: Steve Sakoman <steve.sakoman@linaro.org> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'arch/arm/lib/cache.c')
-rw-r--r--arch/arm/lib/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c
index 5715168..30686fe 100644
--- a/arch/arm/lib/cache.c
+++ b/arch/arm/lib/cache.c
@@ -38,7 +38,7 @@ void flush_cache (unsigned long dummy1, unsigned long dummy2)
/* disable write buffer as well (page 2-22) */
asm("mcr p15, 0, %0, c7, c10, 4" : : "r" (0));
#endif
-#ifdef CONFIG_ARMV7
+#ifdef CONFIG_OMAP34XX
void v7_flush_cache_all(void);
v7_flush_cache_all();