提交 1b6cec8a 编写于 作者: M Magnus Damm 提交者: Paul Mundt

ARM: mach-shmobile: Kota2 PINT fix

Support PINT on sh73a0 and Kota2 using INTC PINT macros.

With this patch applied the Kota2 ethernet is handled
through one of the chained sh73a0 PINT interrupt controllers.

sh73a0 PINT support is included in 3.2-rc but the Kota2 board
code does not make use of this shared code base without this
patch. Without this patch kota2 on-board ethernet is broken.
Signed-off-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 a9098b37
...@@ -56,7 +56,7 @@ static struct resource smsc9220_resources[] = { ...@@ -56,7 +56,7 @@ static struct resource smsc9220_resources[] = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}, },
[1] = { [1] = {
.start = gic_spi(33), /* PINTA2 @ PORT144 */ .start = SH73A0_PINT0_IRQ(2), /* PINTA2 */
.flags = IORESOURCE_IRQ, .flags = IORESOURCE_IRQ,
}, },
}; };
...@@ -317,18 +317,6 @@ static void __init kota2_map_io(void) ...@@ -317,18 +317,6 @@ static void __init kota2_map_io(void)
shmobile_setup_console(); shmobile_setup_console();
} }
#define PINTER0A 0xe69000a0
#define PINTCR0A 0xe69000b0
void __init kota2_init_irq(void)
{
sh73a0_init_irq();
/* setup PINT: enable PINTA2 as active low */
__raw_writel(1 << 29, PINTER0A);
__raw_writew(2 << 10, PINTCR0A);
}
static void __init kota2_init(void) static void __init kota2_init(void)
{ {
sh73a0_pinmux_init(); sh73a0_pinmux_init();
...@@ -447,7 +435,7 @@ struct sys_timer kota2_timer = { ...@@ -447,7 +435,7 @@ struct sys_timer kota2_timer = {
MACHINE_START(KOTA2, "kota2") MACHINE_START(KOTA2, "kota2")
.map_io = kota2_map_io, .map_io = kota2_map_io,
.init_irq = kota2_init_irq, .init_irq = sh73a0_init_irq,
.handle_irq = shmobile_handle_irq_gic, .handle_irq = shmobile_handle_irq_gic,
.init_machine = kota2_init, .init_machine = kota2_init,
.timer = &kota2_timer, .timer = &kota2_timer,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册