]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Blackfin: bf561: use DMA for Core B L1 regions
authorMike Frysinger <vapier@gentoo.org>
Fri, 4 Jun 2010 20:15:38 +0000 (16:15 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 13 Jul 2010 21:50:52 +0000 (17:50 -0400)
The L1 regions of Core B are not directly accessible from Core A, so we
need to use DMA to get at them.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/blackfin_local.h

index 3fd34b33fe7d4444e385d13fefd6100fe9be83bb..48f793a4ce6199343084291a23a7269b698d7636 100644 (file)
@@ -75,7 +75,15 @@ extern void blackfin_dcache_flush_invalidate_range(const void *, const void *);
  * regions can only be accessed via DMA, so if the address in question is in
  * that region, make sure we attempt to DMA indirectly.
  */
-# define addr_bfin_on_chip_mem(addr) (((unsigned long)(addr) & 0xFFF00000) == 0xFFA00000)
+# ifdef __ADSPBF561__
+  /* Core B regions all need dma from Core A */
+#  define addr_bfin_on_chip_mem(addr) \
+       ((((unsigned long)(addr) & 0xFFF00000) == 0xFFA00000) || \
+        (((unsigned long)(addr) & 0xFFC00000) == 0xFF400000))
+# else
+#  define addr_bfin_on_chip_mem(addr) \
+       (((unsigned long)(addr) & 0xFFF00000) == 0xFFA00000)
+# endif
 
 # include <asm/system.h>