[MINI2440] Updated config file
[u-boot-openmoko/mini2440.git] / lib_blackfin / cache.c
blobc2f6e2848ef1db7750ba03edfb41de2ae55f9adf
1 /*
2 * U-boot - cache.c
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.
12 #include <common.h>
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)
19 return;
21 if (icache_status())
22 blackfin_icache_flush_range((void *)addr, (void *)(addr + size));
24 if (dcache_status())
25 blackfin_dcache_flush_range((void *)addr, (void *)(addr + size));