mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
ARM: mach-shmobile: Use evt2irq() for sh7372 DMAC
Use evt2irq() for DMAC resources on sh7372. This makes the code easier to read and also allows adjusting the INTC base offset without breaking platform data. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
dd8a61a739
commit
f989ae5b01
1 changed files with 12 additions and 12 deletions
|
@ -419,14 +419,14 @@ static struct resource sh7372_dmae0_resources[] = {
|
|||
},
|
||||
{
|
||||
/* DMA error IRQ */
|
||||
.start = 246,
|
||||
.end = 246,
|
||||
.start = evt2irq(0x20c0),
|
||||
.end = evt2irq(0x20c0),
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
{
|
||||
/* IRQ for channels 0-5 */
|
||||
.start = 240,
|
||||
.end = 245,
|
||||
.start = evt2irq(0x2000),
|
||||
.end = evt2irq(0x20a0),
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
};
|
||||
|
@ -447,14 +447,14 @@ static struct resource sh7372_dmae1_resources[] = {
|
|||
},
|
||||
{
|
||||
/* DMA error IRQ */
|
||||
.start = 254,
|
||||
.end = 254,
|
||||
.start = evt2irq(0x21c0),
|
||||
.end = evt2irq(0x21c0),
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
{
|
||||
/* IRQ for channels 0-5 */
|
||||
.start = 248,
|
||||
.end = 253,
|
||||
.start = evt2irq(0x2100),
|
||||
.end = evt2irq(0x21a0),
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
};
|
||||
|
@ -475,14 +475,14 @@ static struct resource sh7372_dmae2_resources[] = {
|
|||
},
|
||||
{
|
||||
/* DMA error IRQ */
|
||||
.start = 262,
|
||||
.end = 262,
|
||||
.start = evt2irq(0x22c0),
|
||||
.end = evt2irq(0x22c0),
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
{
|
||||
/* IRQ for channels 0-5 */
|
||||
.start = 256,
|
||||
.end = 261,
|
||||
.start = evt2irq(0x2200),
|
||||
.end = evt2irq(0x22a0),
|
||||
.flags = IORESOURCE_IRQ,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue