]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Blackfin arch: Add option to priorize DMA over Core
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 3 Aug 2007 09:43:29 +0000 (17:43 +0800)
committerBryan Wu <bryan.wu@analog.com>
Fri, 3 Aug 2007 09:43:29 +0000 (17:43 +0800)
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/kernel/bfin_dma_5xx.c
arch/blackfin/mach-bf548/Kconfig

index 7e2201908356d53cf44ed47e8e612d213db6cc53..62f5a35c13eeba445ffc450058d90b1ccea0288b 100644 (file)
@@ -73,6 +73,11 @@ static int __init blackfin_dma_init(void)
        /* Mark MEMDMA Channel 0 as requested since we're using it internally */
        dma_ch[CH_MEM_STREAM0_DEST].chan_status = DMA_CHANNEL_REQUESTED;
        dma_ch[CH_MEM_STREAM0_SRC].chan_status = DMA_CHANNEL_REQUESTED;
+
+#if defined(CONFIG_DEB_DMA_URGENT)
+       bfin_write_EBIU_DDRQUE(bfin_read_EBIU_DDRQUE()
+                        | DEB1_URGENT | DEB2_URGENT | DEB3_URGENT);
+#endif
        return 0;
 }
 
index 3976b7f523c333d669122278a20f353899d8e22e..08d8dc83701c3e7cb3d279f757358155fba662f7 100644 (file)
@@ -2,6 +2,13 @@ if (BF54x)
 
 menu "BF548 Specific Configuration"
 
+config DEB_DMA_URGENT
+       bool "DMA has priority over core for ext. accesses"
+       depends on BF54x
+       default n
+       help
+         Treat any DEB1, DEB2 and DEB3 request as Urgent
+
 comment "Interrupt Priority Assignment"
 menu "Priority"