sh: sh4: Change the specification method of IRQ to SCIx_IRQ_MUXED
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Fri, 13 Apr 2012 03:14:01 +0000 (12:14 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 17 Apr 2012 07:17:31 +0000 (16:17 +0900)
Some SCIF devices specify the same IRQ. We can use SCIx_IRQ_MUXED for this.
And change use to evt2irq(), without specifying the value of IRQ directly.
This is correction to the SH4 series.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/sh4/setup-sh7750.c

index 98cc0c794c765abc4d7397086058c69a20c9e3d2..56b3bdc0b285c20c74661a32715ca641c19614c2 100644 (file)
@@ -43,7 +43,7 @@ static struct plat_sci_port sci_platform_data = {
        .scscr          = SCSCR_TE | SCSCR_RE,
        .scbrr_algo_id  = SCBRR_ALGO_2,
        .type           = PORT_SCI,
-       .irqs           = { 23, 23, 23, 0 },
+       .irqs           = SCIx_IRQ_MUXED(evt2irq(0xE40)),
        .regshift       = 2,
 };
 
@@ -61,7 +61,7 @@ static struct plat_sci_port scif_platform_data = {
        .scscr          = SCSCR_TE | SCSCR_RE | SCSCR_REIE,
        .scbrr_algo_id  = SCBRR_ALGO_2,
        .type           = PORT_SCIF,
-       .irqs           = { 40, 40, 40, 40 },
+       .irqs           = SCIx_IRQ_MUXED(evt2irq(0x700)),
 };
 
 static struct platform_device scif_device = {
This page took 0.025841 seconds and 5 git commands to generate.