commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
25 lines
481 B
C
25 lines
481 B
C
// 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 */
|
|
}
|