ARM: davinci: devices-da8xx: Add interrupt resource to McASP structs
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 12 Mar 2015 08:06:26 +0000 (10:06 +0200)
committerSekhar Nori <nsekhar@ti.com>
Wed, 18 Mar 2015 10:22:04 +0000 (15:52 +0530)
On da8xx McASP TX/RX interrupt requests are combined.
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/devices-da8xx.c

index f351743177705962727d2c73e741c23de5dd2014..e15e046c543854380405ae0083f848d70718cdc8 100644 (file)
@@ -475,6 +475,11 @@ static struct resource da830_mcasp1_resources[] = {
                .end    = DAVINCI_DA830_DMA_MCASP1_AREVT,
                .flags  = IORESOURCE_DMA,
        },
+       {
+               .name   = "common",
+               .start  = IRQ_DA8XX_MCASPINT,
+               .flags  = IORESOURCE_IRQ,
+       },
 };
 
 static struct platform_device da830_mcasp1_device = {
@@ -505,6 +510,11 @@ static struct resource da850_mcasp_resources[] = {
                .end    = DAVINCI_DA8XX_DMA_MCASP0_AREVT,
                .flags  = IORESOURCE_DMA,
        },
+       {
+               .name   = "common",
+               .start  = IRQ_DA8XX_MCASPINT,
+               .flags  = IORESOURCE_IRQ,
+       },
 };
 
 static struct platform_device da850_mcasp_device = {