diff options
Diffstat (limited to 'arch/arm/mach-tegra/dma.c')
| -rw-r--r-- | arch/arm/mach-tegra/dma.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/dma.c b/arch/arm/mach-tegra/dma.c index f4ef5eb317bd..c0cf967e47d3 100644 --- a/arch/arm/mach-tegra/dma.c +++ b/arch/arm/mach-tegra/dma.c | |||
| @@ -105,13 +105,17 @@ | |||
| 105 | 105 | ||
| 106 | #define NV_DMA_MAX_TRASFER_SIZE 0x10000 | 106 | #define NV_DMA_MAX_TRASFER_SIZE 0x10000 |
| 107 | 107 | ||
| 108 | const unsigned int ahb_addr_wrap_table[8] = { | 108 | static const unsigned int ahb_addr_wrap_table[8] = { |
| 109 | 0, 32, 64, 128, 256, 512, 1024, 2048 | 109 | 0, 32, 64, 128, 256, 512, 1024, 2048 |
| 110 | }; | 110 | }; |
| 111 | 111 | ||
| 112 | const unsigned int apb_addr_wrap_table[8] = {0, 1, 2, 4, 8, 16, 32, 64}; | 112 | static const unsigned int apb_addr_wrap_table[8] = { |
| 113 | 0, 1, 2, 4, 8, 16, 32, 64 | ||
| 114 | }; | ||
| 113 | 115 | ||
| 114 | const unsigned int bus_width_table[5] = {8, 16, 32, 64, 128}; | 116 | static const unsigned int bus_width_table[5] = { |
| 117 | 8, 16, 32, 64, 128 | ||
| 118 | }; | ||
| 115 | 119 | ||
| 116 | #define TEGRA_DMA_NAME_SIZE 16 | 120 | #define TEGRA_DMA_NAME_SIZE 16 |
| 117 | struct tegra_dma_channel { | 121 | struct tegra_dma_channel { |
| @@ -157,7 +161,7 @@ void tegra_dma_dequeue(struct tegra_dma_channel *ch) | |||
| 157 | return; | 161 | return; |
| 158 | } | 162 | } |
| 159 | 163 | ||
| 160 | void tegra_dma_stop(struct tegra_dma_channel *ch) | 164 | static void tegra_dma_stop(struct tegra_dma_channel *ch) |
| 161 | { | 165 | { |
| 162 | u32 csr; | 166 | u32 csr; |
| 163 | u32 status; | 167 | u32 status; |
| @@ -174,7 +178,7 @@ void tegra_dma_stop(struct tegra_dma_channel *ch) | |||
| 174 | writel(status, ch->addr + APB_DMA_CHAN_STA); | 178 | writel(status, ch->addr + APB_DMA_CHAN_STA); |
| 175 | } | 179 | } |
| 176 | 180 | ||
| 177 | int tegra_dma_cancel(struct tegra_dma_channel *ch) | 181 | static int tegra_dma_cancel(struct tegra_dma_channel *ch) |
| 178 | { | 182 | { |
| 179 | u32 csr; | 183 | u32 csr; |
| 180 | unsigned long irq_flags; | 184 | unsigned long irq_flags; |
