mirror of https://gitee.com/openkylin/linux.git
sh: sh4-202 evt2irq migration.
Migrate SH4-202 to evt2irq() backed hwirq lookups. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
d8be10bbf3
commit
054f0378a5
|
@ -13,6 +13,7 @@
|
||||||
#include <linux/serial.h>
|
#include <linux/serial.h>
|
||||||
#include <linux/serial_sci.h>
|
#include <linux/serial_sci.h>
|
||||||
#include <linux/sh_timer.h>
|
#include <linux/sh_timer.h>
|
||||||
|
#include <linux/sh_intc.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
static struct plat_sci_port scif0_platform_data = {
|
static struct plat_sci_port scif0_platform_data = {
|
||||||
|
@ -21,7 +22,10 @@ static struct plat_sci_port scif0_platform_data = {
|
||||||
.scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
|
.scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE,
|
||||||
.scbrr_algo_id = SCBRR_ALGO_2,
|
.scbrr_algo_id = SCBRR_ALGO_2,
|
||||||
.type = PORT_SCIF,
|
.type = PORT_SCIF,
|
||||||
.irqs = { 40, 41, 43, 42 },
|
.irqs = { evt2irq(0x700),
|
||||||
|
evt2irq(0x720),
|
||||||
|
evt2irq(0x760),
|
||||||
|
evt2irq(0x740) },
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device scif0_device = {
|
static struct platform_device scif0_device = {
|
||||||
|
@ -45,7 +49,7 @@ static struct resource tmu0_resources[] = {
|
||||||
.flags = IORESOURCE_MEM,
|
.flags = IORESOURCE_MEM,
|
||||||
},
|
},
|
||||||
[1] = {
|
[1] = {
|
||||||
.start = 16,
|
.start = evt2irq(0x400),
|
||||||
.flags = IORESOURCE_IRQ,
|
.flags = IORESOURCE_IRQ,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -73,7 +77,7 @@ static struct resource tmu1_resources[] = {
|
||||||
.flags = IORESOURCE_MEM,
|
.flags = IORESOURCE_MEM,
|
||||||
},
|
},
|
||||||
[1] = {
|
[1] = {
|
||||||
.start = 17,
|
.start = evt2irq(0x420),
|
||||||
.flags = IORESOURCE_IRQ,
|
.flags = IORESOURCE_IRQ,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -100,7 +104,7 @@ static struct resource tmu2_resources[] = {
|
||||||
.flags = IORESOURCE_MEM,
|
.flags = IORESOURCE_MEM,
|
||||||
},
|
},
|
||||||
[1] = {
|
[1] = {
|
||||||
.start = 18,
|
.start = evt2irq(0x440),
|
||||||
.flags = IORESOURCE_IRQ,
|
.flags = IORESOURCE_IRQ,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue