ARM: davinci: dm646x: Add interrupt resource for McASPs
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 12 Mar 2015 08:06:31 +0000 (10:06 +0200)
committerSekhar Nori <nsekhar@ti.com>
Wed, 18 Mar 2015 11:49:50 +0000 (17:19 +0530)
The interrupt can be used for error recovery.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/dm646x.c

index 58769eddd3c35f9a4e47689530b74052952863c0..3f842bb266d6ebe6226209433dca0b805398afaa 100644 (file)
@@ -621,6 +621,16 @@ static struct resource dm646x_mcasp0_resources[] = {
                .end    = DAVINCI_DM646X_DMA_MCASP0_AREVT0,
                .flags  = IORESOURCE_DMA,
        },
+       {
+               .name   = "tx",
+               .start  = IRQ_DM646X_MCASP0TXINT,
+               .flags  = IORESOURCE_IRQ,
+       },
+       {
+               .name   = "rx",
+               .start  = IRQ_DM646X_MCASP0RXINT,
+               .flags  = IORESOURCE_IRQ,
+       },
 };
 
 /* DIT mode only, rx is not supported */
@@ -637,6 +647,11 @@ static struct resource dm646x_mcasp1_resources[] = {
                .end    = DAVINCI_DM646X_DMA_MCASP1_AXEVT1,
                .flags  = IORESOURCE_DMA,
        },
+       {
+               .name   = "tx",
+               .start  = IRQ_DM646X_MCASP1TXINT,
+               .flags  = IORESOURCE_IRQ,
+       },
 };
 
 static struct platform_device dm646x_mcasp0_device = {