Commit d62db60659416499b763a00c953f23ed1c9a5c46
1 parent
de1fc5c629
Exists in
master
and in
7 other branches
m68knommu: fix 5249 ColdFire UART vector setup
The address of the IVUR register is not correct, it should be offset into the MBAR region. Without this the vector is not set to the correct number. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
arch/m68knommu/platform/5249/config.c
| ... | ... | @@ -52,11 +52,11 @@ |
| 52 | 52 | { |
| 53 | 53 | if (line == 0) { |
| 54 | 54 | writeb(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI1, MCF_MBAR + MCFSIM_UART1ICR); |
| 55 | - writeb(irq, MCFUART_BASE1 + MCFUART_UIVR); | |
| 55 | + writeb(irq, MCF_MBAR + MCFUART_BASE1 + MCFUART_UIVR); | |
| 56 | 56 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_UART1); |
| 57 | 57 | } else if (line == 1) { |
| 58 | 58 | writeb(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI2, MCF_MBAR + MCFSIM_UART2ICR); |
| 59 | - writeb(irq, MCFUART_BASE2 + MCFUART_UIVR); | |
| 59 | + writeb(irq, MCF_MBAR + MCFUART_BASE2 + MCFUART_UIVR); | |
| 60 | 60 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_UART2); |
| 61 | 61 | } |
| 62 | 62 | } |