summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasili Galka <vvv444@gmail.com>2014-08-26 14:05:31 +0300
committerTom Rini <trini@ti.com>2014-09-02 08:19:58 -0400
commit3400655e0f3cb6a8ca2b486137e96f576c9cd2fc (patch)
treec62a17c59b9e9e6a919060fd7ad7da34bf405a84
parenta1263632bb05f0a21620bad0661235fcbbe79dca (diff)
downloadu-boot-imx-3400655e0f3cb6a8ca2b486137e96f576c9cd2fc.zip
u-boot-imx-3400655e0f3cb6a8ca2b486137e96f576c9cd2fc.tar.gz
u-boot-imx-3400655e0f3cb6a8ca2b486137e96f576c9cd2fc.tar.bz2
mpc5xxx: Add stub implementation of cache functions
Some drivers (e.g. net/e1000) reference these functions. So, this fixes the build of MVBC_P board. I'm not familiar with the MPC5xxx platform, maybe a full implementation shall be implemented instead of this stub in the future. Signed-off-by: Vasili Galka <vvv444@gmail.com> Cc: Wolfgang Denk <wd@denx.de>, Marek Vasut <marex@denx.de> Acked-by: Wolfgang Denk <wd@denx.de>
-rw-r--r--arch/powerpc/cpu/mpc5xxx/Makefile1
-rw-r--r--arch/powerpc/cpu/mpc5xxx/cache.c15
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc5xxx/Makefile b/arch/powerpc/cpu/mpc5xxx/Makefile
index 5c67e1d..d122b29 100644
--- a/arch/powerpc/cpu/mpc5xxx/Makefile
+++ b/arch/powerpc/cpu/mpc5xxx/Makefile
@@ -7,6 +7,7 @@
extra-y = start.o
extra-y += traps.o
+obj-y += cache.o
obj-y += io.o
obj-y += firmware_sc_task_bestcomm.impl.o
obj-y += i2c.o
diff --git a/arch/powerpc/cpu/mpc5xxx/cache.c b/arch/powerpc/cpu/mpc5xxx/cache.c
new file mode 100644
index 0000000..5d674bc
--- /dev/null
+++ b/arch/powerpc/cpu/mpc5xxx/cache.c
@@ -0,0 +1,15 @@
+/*
+ * This file contains stub implementation of
+ * invalidate_dcache_range()
+ * flush_dcache_range()
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+void invalidate_dcache_range(unsigned long start, unsigned long stop)
+{
+}
+
+void flush_dcache_range(unsigned long start, unsigned long stop)
+{
+}