projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8f36dc
)
Blackfin: fix detection of cached L2 SRAM
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 19 May 2009 12:58:13 +0000
(12:58 +0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Fri, 12 Jun 2009 10:11:25 +0000
(06:11 -0400)
Make sure our bfin_addr_dcachable() function flags cached L2 SRAM properly
else memory easily goes unflushed when working with DMA.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/cacheflush.h
patch
|
blob
|
history
diff --git
a/arch/blackfin/include/asm/cacheflush.h
b/arch/blackfin/include/asm/cacheflush.h
index
d7726ab
..
94697f0
100644
(file)
--- a/
arch/blackfin/include/asm/cacheflush.h
+++ b/
arch/blackfin/include/asm/cacheflush.h
@@
-108,6
+108,11
@@
static inline int bfin_addr_dcachable(unsigned long addr)
addr >= _ramend && addr < physical_mem_end)
return 1;
+#ifndef CONFIG_BFIN_L2_NOT_CACHED
+ if (addr >= L2_START && addr < L2_START + L2_LENGTH)
+ return 1;
+#endif
+
return 0;
}