Merge tag 'dm-pull-6oct20' of git://git.denx.de/u-boot-dm
[platform/kernel/u-boot.git] / arch / mips / mach-octeon / cache.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2020 Marvell International Ltd.
4  */
5
6 #include <cpu_func.h>
7
8 /*
9  * The Octeon platform is cache coherent and cache flushes and invalidates
10  * are not needed. Define some platform specific empty flush_foo()
11  * functions here to overwrite the _weak common function as a no-op.
12  * This effectively disables all cache operations.
13  */
14 void flush_dcache_range(ulong start_addr, ulong stop)
15 {
16 }
17
18 void flush_cache(ulong start_addr, ulong size)
19 {
20 }
21
22 void invalidate_dcache_range(ulong start_addr, ulong stop)
23 {
24 }