2020-06-30 10:08:56 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Marvell International Ltd.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <cpu_func.h>
|
|
|
|
|
2020-08-24 11:04:41 +00:00
|
|
|
/* Octeon memory write barrier */
|
|
|
|
#define CVMX_SYNCW asm volatile ("syncw\nsyncw\n" : : : "memory")
|
|
|
|
|
2020-06-30 10:08:56 +00:00
|
|
|
void flush_dcache_range(ulong start_addr, ulong stop)
|
|
|
|
{
|
2020-08-24 11:04:41 +00:00
|
|
|
/* Flush all pending writes */
|
|
|
|
CVMX_SYNCW;
|
2020-06-30 10:08:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void flush_cache(ulong start_addr, ulong size)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void invalidate_dcache_range(ulong start_addr, ulong stop)
|
|
|
|
{
|
2020-08-24 11:04:41 +00:00
|
|
|
/* Don't need to do anything for OCTEON */
|
2020-06-30 10:08:56 +00:00
|
|
|
}
|