diff options
author | Greg Ungerer <gerg@uclinux.org> | 2009-03-24 02:50:09 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2009-03-24 02:50:09 -0400 |
commit | de1fc5c629f1597ddc996379642f9f3594dcdfbe (patch) | |
tree | 2b3bd1bb9a2116e3ae44d032321b5bbb42c00e84 | |
parent | 4ce2cba45a46668409606bdb9923164b51986807 (diff) |
m68knommu: fix 5249 ColdFire UART setup
The ICR registers of the 5249 ColdFire processor are 8bits, not 32bits.
Fix the read/write of these register to be the correct size.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
-rw-r--r-- | arch/m68knommu/platform/5249/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68knommu/platform/5249/config.c b/arch/m68knommu/platform/5249/config.c index 9c926dedb7c2..3b808c64e671 100644 --- a/arch/m68knommu/platform/5249/config.c +++ b/arch/m68knommu/platform/5249/config.c | |||
@@ -51,11 +51,11 @@ static struct platform_device *m5249_devices[] __initdata = { | |||
51 | static void __init m5249_uart_init_line(int line, int irq) | 51 | static void __init m5249_uart_init_line(int line, int irq) |
52 | { | 52 | { |
53 | if (line == 0) { | 53 | if (line == 0) { |
54 | writel(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI1, MCF_MBAR + MCFSIM_UART1ICR); | 54 | writeb(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI1, MCF_MBAR + MCFSIM_UART1ICR); |
55 | writeb(irq, MCFUART_BASE1 + MCFUART_UIVR); | 55 | writeb(irq, MCFUART_BASE1 + MCFUART_UIVR); |
56 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_UART1); | 56 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_UART1); |
57 | } else if (line == 1) { | 57 | } else if (line == 1) { |
58 | writel(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI2, MCF_MBAR + MCFSIM_UART2ICR); | 58 | writeb(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI2, MCF_MBAR + MCFSIM_UART2ICR); |
59 | writeb(irq, MCFUART_BASE2 + MCFUART_UIVR); | 59 | writeb(irq, MCFUART_BASE2 + MCFUART_UIVR); |
60 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_UART2); | 60 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_UART2); |
61 | } | 61 | } |