diff options
author | Jarkko Nikula <jarkko.nikula@bitmer.com> | 2013-06-15 04:31:04 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-06-18 03:11:59 -0400 |
commit | 0fd8824fab0c7eb31f8c000ab86cd9e6326b791f (patch) | |
tree | ca5a88995a14a0dff5c397d39ff634efae3e215d /arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |
parent | 9bd5b2753964e69edef4dac66ea9b21ac2b3d149 (diff) |
ARM: OMAP2+: hwmod: Remove remaining DMA channel definitions
Last remaining DMA channel definitions in arch/arm/mach-omap2/dma.h
are used only by omap_hwmod_2xxx_3xxx_ipblock_data.c and
omap_hwmod_3xxx_data.c. Remove them by using directly DMA channel number in
hwmod data and drop definitions with a following script:
egrep '#define [OMAP|AM35XX].*DMA' arch/arm/mach-omap2/dma.h | cut -f 1,3 \
| while read i; do \
DEF=`echo $i |cut -d ' ' -f 2`; \
CH=`echo $i |cut -d ' ' -f 3`; \
echo "removing" $DEF; \
sed -i "s/${DEF}/${CH}/" arch/arm/mach-omap2/omap_hwmod_*.c; \
sed -i "/${DEF}/d" arch/arm/mach-omap2/dma.h; \
done
Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_3xxx_data.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index 31c7126eb3bb..33d562017d1f 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -548,8 +548,8 @@ static struct omap_hwmod_irq_info uart4_mpu_irqs[] = { | |||
548 | }; | 548 | }; |
549 | 549 | ||
550 | static struct omap_hwmod_dma_info uart4_sdma_reqs[] = { | 550 | static struct omap_hwmod_dma_info uart4_sdma_reqs[] = { |
551 | { .name = "rx", .dma_req = OMAP36XX_DMA_UART4_RX, }, | 551 | { .name = "rx", .dma_req = 82, }, |
552 | { .name = "tx", .dma_req = OMAP36XX_DMA_UART4_TX, }, | 552 | { .name = "tx", .dma_req = 81, }, |
553 | { .dma_req = -1 } | 553 | { .dma_req = -1 } |
554 | }; | 554 | }; |
555 | 555 | ||
@@ -577,8 +577,8 @@ static struct omap_hwmod_irq_info am35xx_uart4_mpu_irqs[] = { | |||
577 | }; | 577 | }; |
578 | 578 | ||
579 | static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs[] = { | 579 | static struct omap_hwmod_dma_info am35xx_uart4_sdma_reqs[] = { |
580 | { .name = "rx", .dma_req = AM35XX_DMA_UART4_RX, }, | 580 | { .name = "rx", .dma_req = 55, }, |
581 | { .name = "tx", .dma_req = AM35XX_DMA_UART4_TX, }, | 581 | { .name = "tx", .dma_req = 54, }, |
582 | { .dma_req = -1 } | 582 | { .dma_req = -1 } |
583 | }; | 583 | }; |
584 | 584 | ||
@@ -857,8 +857,8 @@ static struct omap_hwmod_irq_info i2c3_mpu_irqs[] = { | |||
857 | }; | 857 | }; |
858 | 858 | ||
859 | static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = { | 859 | static struct omap_hwmod_dma_info i2c3_sdma_reqs[] = { |
860 | { .name = "tx", .dma_req = OMAP34XX_DMA_I2C3_TX }, | 860 | { .name = "tx", .dma_req = 25 }, |
861 | { .name = "rx", .dma_req = OMAP34XX_DMA_I2C3_RX }, | 861 | { .name = "rx", .dma_req = 26 }, |
862 | { .dma_req = -1 } | 862 | { .dma_req = -1 } |
863 | }; | 863 | }; |
864 | 864 | ||
@@ -3581,7 +3581,7 @@ static struct omap_hwmod_irq_info omap3_sham_mpu_irqs[] = { | |||
3581 | }; | 3581 | }; |
3582 | 3582 | ||
3583 | static struct omap_hwmod_dma_info omap3_sham_sdma_reqs[] = { | 3583 | static struct omap_hwmod_dma_info omap3_sham_sdma_reqs[] = { |
3584 | { .name = "rx", .dma_req = OMAP34XX_DMA_SHA1MD5_RX, }, | 3584 | { .name = "rx", .dma_req = 69, }, |
3585 | { .dma_req = -1 } | 3585 | { .dma_req = -1 } |
3586 | }; | 3586 | }; |
3587 | 3587 | ||
@@ -3642,8 +3642,8 @@ static struct omap_hwmod_class omap3xxx_aes_class = { | |||
3642 | }; | 3642 | }; |
3643 | 3643 | ||
3644 | static struct omap_hwmod_dma_info omap3_aes_sdma_reqs[] = { | 3644 | static struct omap_hwmod_dma_info omap3_aes_sdma_reqs[] = { |
3645 | { .name = "tx", .dma_req = OMAP34XX_DMA_AES2_TX, }, | 3645 | { .name = "tx", .dma_req = 65, }, |
3646 | { .name = "rx", .dma_req = OMAP34XX_DMA_AES2_RX, }, | 3646 | { .name = "rx", .dma_req = 66, }, |
3647 | { .dma_req = -1 } | 3647 | { .dma_req = -1 } |
3648 | }; | 3648 | }; |
3649 | 3649 | ||