4 * Copyright (c) 2005-2008 Analog Devices Inc.
6 * (C) Copyright 2000-2004
7 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
9 * Licensed under the GPL-2 or later.
13 #include <asm/blackfin.h>
15 void flush_cache(unsigned long addr, unsigned long size)
17 /* no need to flush stuff in on chip memory (L1/L2/etc...) */
18 if (addr >= 0xE0000000)
22 blackfin_icache_flush_range((void *)addr, (void *)(addr + size));
25 blackfin_dcache_flush_range((void *)addr, (void *)(addr + size));