diff options
Diffstat (limited to 'arch/arm/plat-omap/dma.c')
-rw-r--r-- | arch/arm/plat-omap/dma.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 728c64204184..2ab224c8e16c 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c | |||
@@ -1870,8 +1870,7 @@ static irqreturn_t omap1_dma_irq_handler(int irq, void *dev_id) | |||
1870 | #define omap1_dma_irq_handler NULL | 1870 | #define omap1_dma_irq_handler NULL |
1871 | #endif | 1871 | #endif |
1872 | 1872 | ||
1873 | #if defined(CONFIG_ARCH_OMAP2) || defined(CONFIG_ARCH_OMAP3) || \ | 1873 | #ifdef CONFIG_ARCH_OMAP2PLUS |
1874 | defined(CONFIG_ARCH_OMAP4) | ||
1875 | 1874 | ||
1876 | static int omap2_dma_handle_ch(int ch) | 1875 | static int omap2_dma_handle_ch(int ch) |
1877 | { | 1876 | { |
@@ -2133,13 +2132,13 @@ static int __init omap_init_dma(void) | |||
2133 | if (cpu_class_is_omap2()) { | 2132 | if (cpu_class_is_omap2()) { |
2134 | int irq; | 2133 | int irq; |
2135 | if (cpu_is_omap44xx()) | 2134 | if (cpu_is_omap44xx()) |
2136 | irq = INT_44XX_SDMA_IRQ0; | 2135 | irq = OMAP44XX_IRQ_SDMA_0; |
2137 | else | 2136 | else |
2138 | irq = INT_24XX_SDMA_IRQ0; | 2137 | irq = INT_24XX_SDMA_IRQ0; |
2139 | setup_irq(irq, &omap24xx_dma_irq); | 2138 | setup_irq(irq, &omap24xx_dma_irq); |
2140 | } | 2139 | } |
2141 | 2140 | ||
2142 | if (cpu_is_omap34xx()) { | 2141 | if (cpu_is_omap34xx() || cpu_is_omap44xx()) { |
2143 | /* Enable smartidle idlemodes and autoidle */ | 2142 | /* Enable smartidle idlemodes and autoidle */ |
2144 | u32 v = dma_read(OCP_SYSCONFIG); | 2143 | u32 v = dma_read(OCP_SYSCONFIG); |
2145 | v &= ~(DMA_SYSCONFIG_MIDLEMODE_MASK | | 2144 | v &= ~(DMA_SYSCONFIG_MIDLEMODE_MASK | |
@@ -2150,7 +2149,8 @@ static int __init omap_init_dma(void) | |||
2150 | DMA_SYSCONFIG_AUTOIDLE); | 2149 | DMA_SYSCONFIG_AUTOIDLE); |
2151 | dma_write(v , OCP_SYSCONFIG); | 2150 | dma_write(v , OCP_SYSCONFIG); |
2152 | /* reserve dma channels 0 and 1 in high security devices */ | 2151 | /* reserve dma channels 0 and 1 in high security devices */ |
2153 | if (omap_type() != OMAP2_DEVICE_TYPE_GP) { | 2152 | if (cpu_is_omap34xx() && |
2153 | (omap_type() != OMAP2_DEVICE_TYPE_GP)) { | ||
2154 | printk(KERN_INFO "Reserving DMA channels 0 and 1 for " | 2154 | printk(KERN_INFO "Reserving DMA channels 0 and 1 for " |
2155 | "HS ROM code\n"); | 2155 | "HS ROM code\n"); |
2156 | dma_chan[0].dev_id = 0; | 2156 | dma_chan[0].dev_id = 0; |