aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2011-09-08 21:07:35 -0400
committerOlof Johansson <olof@lixom.net>2011-10-13 17:08:29 -0400
commitcf28cba0ab02ce3e41a7b2606423eb21f1841b7a (patch)
tree616ed8a7c6927dda59e6f961e5d413b107e58afa /arch/arm/mach-tegra
parent87c6e46a2c96ce2081070701237c58ed7eec94e7 (diff)
ARM: tegra: dma: staticify some tables and functions
None of them are used externally. Signed-off-by: Olof Johansson <olof@lixom.net> Acked-by: Stephen Warren <swarren@nvidia.com> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r--arch/arm/mach-tegra/dma.c14
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
108const unsigned int ahb_addr_wrap_table[8] = { 108static 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
112const unsigned int apb_addr_wrap_table[8] = {0, 1, 2, 4, 8, 16, 32, 64}; 112static const unsigned int apb_addr_wrap_table[8] = {
113 0, 1, 2, 4, 8, 16, 32, 64
114};
113 115
114const unsigned int bus_width_table[5] = {8, 16, 32, 64, 128}; 116static 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
117struct tegra_dma_channel { 121struct tegra_dma_channel {
@@ -157,7 +161,7 @@ void tegra_dma_dequeue(struct tegra_dma_channel *ch)
157 return; 161 return;
158} 162}
159 163
160void tegra_dma_stop(struct tegra_dma_channel *ch) 164static 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
177int tegra_dma_cancel(struct tegra_dma_channel *ch) 181static 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;