aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci
diff options
context:
space:
mode:
authorMichael Williamson <michael.williamson@criticallink.com>2011-02-22 08:36:57 -0500
committerKevin Hilman <khilman@ti.com>2011-03-11 13:48:28 -0500
commite38c2b22264319ac0ccc63d0a2366f8b6c33e32e (patch)
treebc7a720f4ae6b7269c6ccd70c976dea7e9d2bead /arch/arm/mach-davinci
parente647198069b43fc5494b34c9a81c47566a764eb4 (diff)
davinci: da8xx: clean up magic numbers in devices-da8xx.c
Extract magic numbers from DMA resource initializers to #defines. Signed-off-by: Michael Williamson <michael.williamson@criticallink.com> Acked-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci')
-rw-r--r--arch/arm/mach-davinci/devices-da8xx.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
index 9eec63070e0c..9b1ecfb3905d 100644
--- a/arch/arm/mach-davinci/devices-da8xx.c
+++ b/arch/arm/mach-davinci/devices-da8xx.c
@@ -44,6 +44,11 @@
44#define DA8XX_EMAC_RAM_OFFSET 0x0000 44#define DA8XX_EMAC_RAM_OFFSET 0x0000
45#define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K 45#define DA8XX_EMAC_CTRL_RAM_SIZE SZ_8K
46 46
47#define DA8XX_DMA_MMCSD0_RX EDMA_CTLR_CHAN(0, 16)
48#define DA8XX_DMA_MMCSD0_TX EDMA_CTLR_CHAN(0, 17)
49#define DA850_DMA_MMCSD1_RX EDMA_CTLR_CHAN(1, 28)
50#define DA850_DMA_MMCSD1_TX EDMA_CTLR_CHAN(1, 29)
51
47void __iomem *da8xx_syscfg0_base; 52void __iomem *da8xx_syscfg0_base;
48void __iomem *da8xx_syscfg1_base; 53void __iomem *da8xx_syscfg1_base;
49 54
@@ -566,13 +571,13 @@ static struct resource da8xx_mmcsd0_resources[] = {
566 .flags = IORESOURCE_IRQ, 571 .flags = IORESOURCE_IRQ,
567 }, 572 },
568 { /* DMA RX */ 573 { /* DMA RX */
569 .start = EDMA_CTLR_CHAN(0, 16), 574 .start = DA8XX_DMA_MMCSD0_RX,
570 .end = EDMA_CTLR_CHAN(0, 16), 575 .end = DA8XX_DMA_MMCSD0_RX,
571 .flags = IORESOURCE_DMA, 576 .flags = IORESOURCE_DMA,
572 }, 577 },
573 { /* DMA TX */ 578 { /* DMA TX */
574 .start = EDMA_CTLR_CHAN(0, 17), 579 .start = DA8XX_DMA_MMCSD0_TX,
575 .end = EDMA_CTLR_CHAN(0, 17), 580 .end = DA8XX_DMA_MMCSD0_TX,
576 .flags = IORESOURCE_DMA, 581 .flags = IORESOURCE_DMA,
577 }, 582 },
578}; 583};
@@ -603,13 +608,13 @@ static struct resource da850_mmcsd1_resources[] = {
603 .flags = IORESOURCE_IRQ, 608 .flags = IORESOURCE_IRQ,
604 }, 609 },
605 { /* DMA RX */ 610 { /* DMA RX */
606 .start = EDMA_CTLR_CHAN(1, 28), 611 .start = DA850_DMA_MMCSD1_RX,
607 .end = EDMA_CTLR_CHAN(1, 28), 612 .end = DA850_DMA_MMCSD1_RX,
608 .flags = IORESOURCE_DMA, 613 .flags = IORESOURCE_DMA,
609 }, 614 },
610 { /* DMA TX */ 615 { /* DMA TX */
611 .start = EDMA_CTLR_CHAN(1, 29), 616 .start = DA850_DMA_MMCSD1_TX,
612 .end = EDMA_CTLR_CHAN(1, 29), 617 .end = DA850_DMA_MMCSD1_TX,
613 .flags = IORESOURCE_DMA, 618 .flags = IORESOURCE_DMA,
614 }, 619 },
615}; 620};