From 3400655e0f3cb6a8ca2b486137e96f576c9cd2fc Mon Sep 17 00:00:00 2001 From: Vasili Galka Date: Tue, 26 Aug 2014 14:05:31 +0300 Subject: [PATCH] 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 Cc: Wolfgang Denk , Marek Vasut Acked-by: Wolfgang Denk --- arch/powerpc/cpu/mpc5xxx/Makefile | 1 + arch/powerpc/cpu/mpc5xxx/cache.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 arch/powerpc/cpu/mpc5xxx/cache.c diff --git a/arch/powerpc/cpu/mpc5xxx/Makefile b/arch/powerpc/cpu/mpc5xxx/Makefile index 5c67e1d37d..d122b29aec 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 0000000000..5d674bce41 --- /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) +{ +} -- 2.25.1