diff options
author | Tony Lindgren <tony@atomide.com> | 2008-07-03 05:24:31 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-07-03 05:24:31 -0400 |
commit | 4d96372e6daae89166fed7883ee092dc8db80b21 (patch) | |
tree | 56814f4e3909e1337b4c8014c1989f9345ed1ba9 /include/asm-arm/arch-omap/dma.h | |
parent | 4a79acdc784c315d9c436ba2315d08f8f53b8adf (diff) |
ARM: OMAP: DMA: Make channels dynamic for multi-boot
Make DMA channels dynamic for multi-boot
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'include/asm-arm/arch-omap/dma.h')
-rw-r--r-- | include/asm-arm/arch-omap/dma.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/asm-arm/arch-omap/dma.h b/include/asm-arm/arch-omap/dma.h index 24acf090030d..46fe5a40a25e 100644 --- a/include/asm-arm/arch-omap/dma.h +++ b/include/asm-arm/arch-omap/dma.h | |||
@@ -68,9 +68,10 @@ | |||
68 | #define OMAP_DMA4_CAPS_3 (OMAP_DMA4_BASE + 0x70) | 68 | #define OMAP_DMA4_CAPS_3 (OMAP_DMA4_BASE + 0x70) |
69 | #define OMAP_DMA4_CAPS_4 (OMAP_DMA4_BASE + 0x74) | 69 | #define OMAP_DMA4_CAPS_4 (OMAP_DMA4_BASE + 0x74) |
70 | 70 | ||
71 | #ifdef CONFIG_ARCH_OMAP1 | 71 | #define OMAP1_LOGICAL_DMA_CH_COUNT 17 |
72 | #define OMAP_DMA4_LOGICAL_DMA_CH_COUNT 32 /* REVISIT: Is this 32 + 2? */ | ||
72 | 73 | ||
73 | #define OMAP_LOGICAL_DMA_CH_COUNT 17 | 74 | #ifdef CONFIG_ARCH_OMAP1 |
74 | 75 | ||
75 | /* Common channel specific registers for omap1 */ | 76 | /* Common channel specific registers for omap1 */ |
76 | #define OMAP_DMA_CSDP_REG(n) __REG16(OMAP_DMA_BASE + 0x40 * (n) + 0x00) | 77 | #define OMAP_DMA_CSDP_REG(n) __REG16(OMAP_DMA_BASE + 0x40 * (n) + 0x00) |
@@ -89,8 +90,6 @@ | |||
89 | 90 | ||
90 | #else | 91 | #else |
91 | 92 | ||
92 | #define OMAP_LOGICAL_DMA_CH_COUNT 32 /* REVISIT: Is this 32 + 2? */ | ||
93 | |||
94 | /* Common channel specific registers for omap2 */ | 93 | /* Common channel specific registers for omap2 */ |
95 | #define OMAP_DMA_CCR_REG(n) __REG32(OMAP_DMA4_BASE + 0x60 * (n) + 0x80) | 94 | #define OMAP_DMA_CCR_REG(n) __REG32(OMAP_DMA4_BASE + 0x60 * (n) + 0x80) |
96 | #define OMAP_DMA_CLNK_CTRL_REG(n) __REG32(OMAP_DMA4_BASE + 0x60 * (n) + 0x84) | 95 | #define OMAP_DMA_CLNK_CTRL_REG(n) __REG32(OMAP_DMA4_BASE + 0x60 * (n) + 0x84) |