From: Alex Nemirovsky Date: Mon, 23 Dec 2019 20:19:20 +0000 Subject: [PATCH v1] MIPS: allow override of flush_dcache_range() In-Reply-To: <1577132293-31292-1-git-send-email-alex.nemirovsky@cortina-access.com> References: <1577132293-31292-1-git-send-email-alex.nemirovsky@cortina-access.com> Message-ID: <1577132293-31292-2-git-send-email-alex.nemirovsky@cortina-access.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Useful in custom HW designs which have a need to flush dcache range in a completely non standard way. Signed-off-by: Alex Nemirovsky --- arch/mips/lib/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c index 502956d..1a8c87d 100644 --- a/arch/mips/lib/cache.c +++ b/arch/mips/lib/cache.c @@ -141,7 +141,7 @@ ops_done: instruction_hazard_barrier(); } -void flush_dcache_range(ulong start_addr, ulong stop) +void __weak flush_dcache_range(ulong start_addr, ulong stop) { unsigned long lsize = dcache_line_size(); unsigned long slsize = scache_line_size(); -- 2.7.4