2 * Blackfin cache control code (simpler control-style functions)
4 * Copyright 2004-2008 Analog Devices Inc.
6 * Enter bugs at http://blackfin.uclinux.org/
8 * Licensed under the GPL-2 or later.
11 #include <asm/blackfin.h>
13 /* Invalidate the Entire Data cache by
14 * clearing DMC[1:0] bits
16 void blackfin_invalidate_entire_dcache(void)
18 u32 dmem = bfin_read_DMEM_CONTROL();
20 bfin_write_DMEM_CONTROL(dmem & ~0xc);
22 bfin_write_DMEM_CONTROL(dmem);