From b0b445d0c11b6b6024e92771544bf019ac2cceb1 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Sat, 24 Dec 2011 00:49:12 +1000 Subject: [PATCH] --- yaml --- r: 292423 b: refs/heads/master c: a579748dc1b5233e13c7b2fdb0f005f93369bb83 h: refs/heads/master i: 292421: f94569dd216e885eff0ff5a3872d500207a0ab05 292419: 045bb528e7bd0b251aaa7db1ae53b4897251ccf1 292415: 63ca2234d30f96b290f16d67c01f05bed3e29325 v: v3 --- [refs] | 2 +- trunk/arch/m68k/platform/5206/config.c | 27 +++++++++----------------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/[refs] b/[refs] index e5e14432eb6c..3af91d8aef64 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: bbbeeaf2f74b634c95af3492e4958e752966eaa5 +refs/heads/master: a579748dc1b5233e13c7b2fdb0f005f93369bb83 diff --git a/trunk/arch/m68k/platform/5206/config.c b/trunk/arch/m68k/platform/5206/config.c index 4eec699b3bc9..a8ba8106cbc8 100644 --- a/trunk/arch/m68k/platform/5206/config.c +++ b/trunk/arch/m68k/platform/5206/config.c @@ -44,26 +44,17 @@ static struct platform_device *m5206_devices[] __initdata = { /***************************************************************************/ -static void __init m5206_uart_init_line(int line, int irq) -{ - if (line == 0) { - writel(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI1, MCF_MBAR + MCFSIM_UART1ICR); - writeb(irq, MCFUART_BASE0 + MCFUART_UIVR); - mcf_mapirq2imr(irq, MCFINTC_UART0); - } else if (line == 1) { - writel(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI2, MCF_MBAR + MCFSIM_UART2ICR); - writeb(irq, MCFUART_BASE1 + MCFUART_UIVR); - mcf_mapirq2imr(irq, MCFINTC_UART1); - } -} - static void __init m5206_uarts_init(void) { - const int nrlines = ARRAY_SIZE(m5206_uart_platform); - int line; - - for (line = 0; (line < nrlines); line++) - m5206_uart_init_line(line, m5206_uart_platform[line].irq); + /* UART0 interrupt setup */ + writel(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI1, MCF_MBAR + MCFSIM_UART1ICR); + writeb(MCF_IRQ_UART0, MCFUART_BASE0 + MCFUART_UIVR); + mcf_mapirq2imr(MCF_IRQ_UART0, MCFINTC_UART0); + + /* UART1 interrupt setup */ + writel(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI2, MCF_MBAR + MCFSIM_UART2ICR); + writeb(MCF_IRQ_UART1, MCFUART_BASE1 + MCFUART_UIVR); + mcf_mapirq2imr(MCF_IRQ_UART1, MCFINTC_UART1); } /***************************************************************************/