diff options
Diffstat (limited to 'arch/m68knommu/platform/5307/config.c')
-rw-r--r-- | arch/m68knommu/platform/5307/config.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/m68knommu/platform/5307/config.c b/arch/m68knommu/platform/5307/config.c index 60fe45d51391..3e27d2ec03f0 100644 --- a/arch/m68knommu/platform/5307/config.c +++ b/arch/m68knommu/platform/5307/config.c | |||
@@ -64,11 +64,11 @@ static void __init m5307_uart_init_line(int line, int irq) | |||
64 | if (line == 0) { | 64 | if (line == 0) { |
65 | writeb(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI1, MCF_MBAR + MCFSIM_UART1ICR); | 65 | writeb(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI1, MCF_MBAR + MCFSIM_UART1ICR); |
66 | writeb(irq, MCF_MBAR + MCFUART_BASE1 + MCFUART_UIVR); | 66 | writeb(irq, MCF_MBAR + MCFUART_BASE1 + MCFUART_UIVR); |
67 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_UART1); | 67 | mcf_clrimr(MCFINTC_UART0); |
68 | } else if (line == 1) { | 68 | } else if (line == 1) { |
69 | writeb(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI2, MCF_MBAR + MCFSIM_UART2ICR); | 69 | writeb(MCFSIM_ICR_LEVEL6 | MCFSIM_ICR_PRI2, MCF_MBAR + MCFSIM_UART2ICR); |
70 | writeb(irq, MCF_MBAR + MCFUART_BASE2 + MCFUART_UIVR); | 70 | writeb(irq, MCF_MBAR + MCFUART_BASE2 + MCFUART_UIVR); |
71 | mcf_setimr(mcf_getimr() & ~MCFSIM_IMR_UART2); | 71 | mcf_clrimr(MCFINTC_UART1); |
72 | } | 72 | } |
73 | } | 73 | } |
74 | 74 | ||
@@ -90,13 +90,13 @@ void mcf_settimericr(unsigned int timer, unsigned int level) | |||
90 | 90 | ||
91 | if (timer <= 2) { | 91 | if (timer <= 2) { |
92 | switch (timer) { | 92 | switch (timer) { |
93 | case 2: icr = MCFSIM_TIMER2ICR; imr = MCFSIM_IMR_TIMER2; break; | 93 | case 2: icr = MCFSIM_TIMER2ICR; imr = MCFINTC_TIMER2; break; |
94 | default: icr = MCFSIM_TIMER1ICR; imr = MCFSIM_IMR_TIMER1; break; | 94 | default: icr = MCFSIM_TIMER1ICR; imr = MCFINTC_TIMER1; break; |
95 | } | 95 | } |
96 | 96 | ||
97 | icrp = (volatile unsigned char *) (MCF_MBAR + icr); | 97 | icrp = (volatile unsigned char *) (MCF_MBAR + icr); |
98 | *icrp = MCFSIM_ICR_AUTOVEC | (level << 2) | MCFSIM_ICR_PRI3; | 98 | *icrp = MCFSIM_ICR_AUTOVEC | (level << 2) | MCFSIM_ICR_PRI3; |
99 | mcf_setimr(mcf_getimr() & ~imr); | 99 | mcf_clrimr(imr); |
100 | } | 100 | } |
101 | } | 101 | } |
102 | 102 | ||
@@ -115,8 +115,6 @@ void m5307_cpu_reset(void) | |||
115 | 115 | ||
116 | void __init config_BSP(char *commandp, int size) | 116 | void __init config_BSP(char *commandp, int size) |
117 | { | 117 | { |
118 | mcf_setimr(MCFSIM_IMR_MASKALL); | ||
119 | |||
120 | #if defined(CONFIG_NETtel) || \ | 118 | #if defined(CONFIG_NETtel) || \ |
121 | defined(CONFIG_SECUREEDGEMP3) || defined(CONFIG_CLEOPATRA) | 119 | defined(CONFIG_SECUREEDGEMP3) || defined(CONFIG_CLEOPATRA) |
122 | /* Copy command line from FLASH to local buffer... */ | 120 | /* Copy command line from FLASH to local buffer... */ |