diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap1/lcd_dma.c | 5 | ||||
-rw-r--r-- | arch/arm/plat-omap/dma.c | 13 |
2 files changed, 11 insertions, 7 deletions
diff --git a/arch/arm/mach-omap1/lcd_dma.c b/arch/arm/mach-omap1/lcd_dma.c index 86ace9aaa663..9237576270b2 100644 --- a/arch/arm/mach-omap1/lcd_dma.c +++ b/arch/arm/mach-omap1/lcd_dma.c | |||
@@ -77,11 +77,6 @@ void omap_set_lcd_dma_b1(unsigned long addr, u16 fb_xres, u16 fb_yres, | |||
77 | } | 77 | } |
78 | EXPORT_SYMBOL(omap_set_lcd_dma_b1); | 78 | EXPORT_SYMBOL(omap_set_lcd_dma_b1); |
79 | 79 | ||
80 | void omap_set_lcd_dma_src_port(int port) | ||
81 | { | ||
82 | lcd_dma.src_port = port; | ||
83 | } | ||
84 | |||
85 | void omap_set_lcd_dma_ext_controller(int external) | 80 | void omap_set_lcd_dma_ext_controller(int external) |
86 | { | 81 | { |
87 | lcd_dma.ext_ctrl = external; | 82 | lcd_dma.ext_ctrl = external; |
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index ecdb3da0dea9..612227efe34f 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
@@ -41,6 +41,15 @@ | |||
41 | 41 | ||
42 | #include <plat/tc.h> | 42 | #include <plat/tc.h> |
43 | 43 | ||
44 | /* | ||
45 | * MAX_LOGICAL_DMA_CH_COUNT: the maximum number of logical DMA | ||
46 | * channels that an instance of the SDMA IP block can support. Used | ||
47 | * to size arrays. (The actual maximum on a particular SoC may be less | ||
48 | * than this -- for example, OMAP1 SDMA instances only support 17 logical | ||
49 | * DMA channels.) | ||
50 | */ | ||
51 | #define MAX_LOGICAL_DMA_CH_COUNT 32 | ||
52 | |||
44 | #undef DEBUG | 53 | #undef DEBUG |
45 | 54 | ||
46 | #ifndef CONFIG_ARCH_OMAP1 | 55 | #ifndef CONFIG_ARCH_OMAP1 |
@@ -883,7 +892,7 @@ void omap_start_dma(int lch) | |||
883 | 892 | ||
884 | if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { | 893 | if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { |
885 | int next_lch, cur_lch; | 894 | int next_lch, cur_lch; |
886 | char dma_chan_link_map[dma_lch_count]; | 895 | char dma_chan_link_map[MAX_LOGICAL_DMA_CH_COUNT]; |
887 | 896 | ||
888 | dma_chan_link_map[lch] = 1; | 897 | dma_chan_link_map[lch] = 1; |
889 | /* Set the link register of the first channel */ | 898 | /* Set the link register of the first channel */ |
@@ -967,7 +976,7 @@ void omap_stop_dma(int lch) | |||
967 | 976 | ||
968 | if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { | 977 | if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { |
969 | int next_lch, cur_lch = lch; | 978 | int next_lch, cur_lch = lch; |
970 | char dma_chan_link_map[dma_lch_count]; | 979 | char dma_chan_link_map[MAX_LOGICAL_DMA_CH_COUNT]; |
971 | 980 | ||
972 | memset(dma_chan_link_map, 0, sizeof(dma_chan_link_map)); | 981 | memset(dma_chan_link_map, 0, sizeof(dma_chan_link_map)); |
973 | do { | 982 | do { |