diff options
Diffstat (limited to 'arch/m68knommu/platform/520x/config.c')
-rw-r--r-- | arch/m68knommu/platform/520x/config.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/m68knommu/platform/520x/config.c b/arch/m68knommu/platform/520x/config.c index 1c43a8aec69b..92614de42cd3 100644 --- a/arch/m68knommu/platform/520x/config.c +++ b/arch/m68knommu/platform/520x/config.c | |||
@@ -81,20 +81,11 @@ static struct platform_device *m520x_devices[] __initdata = { | |||
81 | 81 | ||
82 | /***************************************************************************/ | 82 | /***************************************************************************/ |
83 | 83 | ||
84 | #define INTC0 (MCF_MBAR + MCFICM_INTC0) | ||
85 | |||
86 | static void __init m520x_uart_init_line(int line, int irq) | 84 | static void __init m520x_uart_init_line(int line, int irq) |
87 | { | 85 | { |
88 | u32 imr; | ||
89 | u16 par; | 86 | u16 par; |
90 | u8 par2; | 87 | u8 par2; |
91 | 88 | ||
92 | writeb(0x03, INTC0 + MCFINTC_ICR0 + MCFINT_UART0 + line); | ||
93 | |||
94 | imr = readl(INTC0 + MCFINTC_IMRL); | ||
95 | imr &= ~((1 << (irq - MCFINT_VECBASE)) | 1); | ||
96 | writel(imr, INTC0 + MCFINTC_IMRL); | ||
97 | |||
98 | switch (line) { | 89 | switch (line) { |
99 | case 0: | 90 | case 0: |
100 | par = readw(MCF_IPSBAR + MCF_GPIO_PAR_UART); | 91 | par = readw(MCF_IPSBAR + MCF_GPIO_PAR_UART); |
@@ -131,18 +122,8 @@ static void __init m520x_uarts_init(void) | |||
131 | 122 | ||
132 | static void __init m520x_fec_init(void) | 123 | static void __init m520x_fec_init(void) |
133 | { | 124 | { |
134 | u32 imr; | ||
135 | u8 v; | 125 | u8 v; |
136 | 126 | ||
137 | /* Unmask FEC interrupts at ColdFire interrupt controller */ | ||
138 | writeb(0x4, MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_ICR0 + 36); | ||
139 | writeb(0x4, MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_ICR0 + 40); | ||
140 | writeb(0x4, MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_ICR0 + 42); | ||
141 | |||
142 | imr = readl(MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRH); | ||
143 | imr &= ~0x0001FFF0; | ||
144 | writel(imr, MCF_IPSBAR + MCFICM_INTC0 + MCFINTC_IMRH); | ||
145 | |||
146 | /* Set multi-function pins to ethernet mode */ | 127 | /* Set multi-function pins to ethernet mode */ |
147 | v = readb(MCF_IPSBAR + MCF_GPIO_PAR_FEC); | 128 | v = readb(MCF_IPSBAR + MCF_GPIO_PAR_FEC); |
148 | writeb(v | 0xf0, MCF_IPSBAR + MCF_GPIO_PAR_FEC); | 129 | writeb(v | 0xf0, MCF_IPSBAR + MCF_GPIO_PAR_FEC); |
@@ -153,17 +134,6 @@ static void __init m520x_fec_init(void) | |||
153 | 134 | ||
154 | /***************************************************************************/ | 135 | /***************************************************************************/ |
155 | 136 | ||
156 | /* | ||
157 | * Program the vector to be an auto-vectored. | ||
158 | */ | ||
159 | |||
160 | void mcf_autovector(unsigned int vec) | ||
161 | { | ||
162 | /* Everything is auto-vectored on the 520x devices */ | ||
163 | } | ||
164 | |||
165 | /***************************************************************************/ | ||
166 | |||
167 | static void m520x_cpu_reset(void) | 137 | static void m520x_cpu_reset(void) |
168 | { | 138 | { |
169 | local_irq_disable(); | 139 | local_irq_disable(); |