diff options
Diffstat (limited to 'roms/u-boot/arch/mips/mach-octeon/cache.c')
-rw-r--r-- | roms/u-boot/arch/mips/mach-octeon/cache.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roms/u-boot/arch/mips/mach-octeon/cache.c b/roms/u-boot/arch/mips/mach-octeon/cache.c new file mode 100644 index 000000000..f293d65da --- /dev/null +++ b/roms/u-boot/arch/mips/mach-octeon/cache.c @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2020 Marvell International Ltd. + */ + +#include <cpu_func.h> + +/* Octeon memory write barrier */ +#define CVMX_SYNCW asm volatile ("syncw\nsyncw\n" : : : "memory") + +void flush_dcache_range(ulong start_addr, ulong stop) +{ + /* Flush all pending writes */ + CVMX_SYNCW; +} + +void flush_cache(ulong start_addr, ulong size) +{ +} + +void invalidate_dcache_range(ulong start_addr, ulong stop) +{ + /* Don't need to do anything for OCTEON */ +} |