blob: fd17467f70783ae88753e27d63646256030e5dac [file] [log] [blame]
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01001/* Sparc cache library
2 *
3 * (C) Copyright 2007
4 * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
5 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02006 * SPDX-License-Identifier: GPL-2.0+
Daniel Hellstrom9d7c6b22008-03-28 09:47:00 +01007 */
8
9#include <common.h>
10#include <asm/processor.h>
11
12void flush_cache(ulong start_addr, ulong size)
13{
14 /* Flush All Cache */
15 sparc_dcache_flush_all();
16 sparc_icache_flush_all();
17}