diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2007-08-03 05:43:29 -0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-08-03 05:43:29 -0400 |
commit | a924db7c00655447c5228bd74da070c69b7cadbc (patch) | |
tree | 5e19fb9a35edcc4b0066fe529d3c9f8f828f147c /arch | |
parent | 7735cefc4583175486685fced2f457fbe0fd5855 (diff) |
Blackfin arch: Add option to priorize DMA over Core
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/kernel/bfin_dma_5xx.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf548/Kconfig | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/bfin_dma_5xx.c b/arch/blackfin/kernel/bfin_dma_5xx.c index 7e2201908356..62f5a35c13ee 100644 --- a/arch/blackfin/kernel/bfin_dma_5xx.c +++ b/arch/blackfin/kernel/bfin_dma_5xx.c | |||
@@ -73,6 +73,11 @@ static int __init blackfin_dma_init(void) | |||
73 | /* Mark MEMDMA Channel 0 as requested since we're using it internally */ | 73 | /* Mark MEMDMA Channel 0 as requested since we're using it internally */ |
74 | dma_ch[CH_MEM_STREAM0_DEST].chan_status = DMA_CHANNEL_REQUESTED; | 74 | dma_ch[CH_MEM_STREAM0_DEST].chan_status = DMA_CHANNEL_REQUESTED; |
75 | dma_ch[CH_MEM_STREAM0_SRC].chan_status = DMA_CHANNEL_REQUESTED; | 75 | dma_ch[CH_MEM_STREAM0_SRC].chan_status = DMA_CHANNEL_REQUESTED; |
76 | |||
77 | #if defined(CONFIG_DEB_DMA_URGENT) | ||
78 | bfin_write_EBIU_DDRQUE(bfin_read_EBIU_DDRQUE() | ||
79 | | DEB1_URGENT | DEB2_URGENT | DEB3_URGENT); | ||
80 | #endif | ||
76 | return 0; | 81 | return 0; |
77 | } | 82 | } |
78 | 83 | ||
diff --git a/arch/blackfin/mach-bf548/Kconfig b/arch/blackfin/mach-bf548/Kconfig index 3976b7f523c3..08d8dc83701c 100644 --- a/arch/blackfin/mach-bf548/Kconfig +++ b/arch/blackfin/mach-bf548/Kconfig | |||
@@ -2,6 +2,13 @@ if (BF54x) | |||
2 | 2 | ||
3 | menu "BF548 Specific Configuration" | 3 | menu "BF548 Specific Configuration" |
4 | 4 | ||
5 | config DEB_DMA_URGENT | ||
6 | bool "DMA has priority over core for ext. accesses" | ||
7 | depends on BF54x | ||
8 | default n | ||
9 | help | ||
10 | Treat any DEB1, DEB2 and DEB3 request as Urgent | ||
11 | |||
5 | comment "Interrupt Priority Assignment" | 12 | comment "Interrupt Priority Assignment" |
6 | menu "Priority" | 13 | menu "Priority" |
7 | 14 | ||