]> git.sur5r.net Git - u-boot/commitdiff
mpc5xxx: Add stub implementation of cache functions
authorVasili Galka <vvv444@gmail.com>
Tue, 26 Aug 2014 11:05:31 +0000 (14:05 +0300)
committerTom Rini <trini@ti.com>
Tue, 2 Sep 2014 12:19:58 +0000 (08:19 -0400)
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>
arch/powerpc/cpu/mpc5xxx/Makefile
arch/powerpc/cpu/mpc5xxx/cache.c [new file with mode: 0644]

index 5c67e1d37d8ca858a1ac963e9ca0ca9dc1d72cd0..d122b29aec56d2c05874c30909d7f2d36720bc9b 100644 (file)
@@ -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 (file)
index 0000000..5d674bc
--- /dev/null
@@ -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)
+{
+}