diff options
Diffstat (limited to 'arch/mips/pmc-sierra/msp71xx')
-rw-r--r-- | arch/mips/pmc-sierra/msp71xx/msp_hwbutton.c | 2 | ||||
-rw-r--r-- | arch/mips/pmc-sierra/msp71xx/msp_serial.c | 8 | ||||
-rw-r--r-- | arch/mips/pmc-sierra/msp71xx/msp_setup.c | 18 | ||||
-rw-r--r-- | arch/mips/pmc-sierra/msp71xx/msp_time.c | 3 | ||||
-rw-r--r-- | arch/mips/pmc-sierra/msp71xx/msp_usb.c | 8 |
5 files changed, 11 insertions, 28 deletions
diff --git a/arch/mips/pmc-sierra/msp71xx/msp_hwbutton.c b/arch/mips/pmc-sierra/msp71xx/msp_hwbutton.c index 6fa85728158b..ab96a2d7f4c4 100644 --- a/arch/mips/pmc-sierra/msp71xx/msp_hwbutton.c +++ b/arch/mips/pmc-sierra/msp71xx/msp_hwbutton.c | |||
@@ -163,7 +163,7 @@ static int msp_hwbutton_register(struct hwbutton_interrupt *hirq) | |||
163 | CIC_EXT_SET_ACTIVE_HI(cic_ext, hirq->eirq); | 163 | CIC_EXT_SET_ACTIVE_HI(cic_ext, hirq->eirq); |
164 | *CIC_EXT_CFG_REG = cic_ext; | 164 | *CIC_EXT_CFG_REG = cic_ext; |
165 | 165 | ||
166 | return request_irq(hirq->irq, hwbutton_handler, SA_INTERRUPT, | 166 | return request_irq(hirq->irq, hwbutton_handler, IRQF_DISABLED, |
167 | hirq->name, (void *)hirq); | 167 | hirq->name, (void *)hirq); |
168 | } | 168 | } |
169 | 169 | ||
diff --git a/arch/mips/pmc-sierra/msp71xx/msp_serial.c b/arch/mips/pmc-sierra/msp71xx/msp_serial.c index e25bac537d77..15e7b8000b4c 100644 --- a/arch/mips/pmc-sierra/msp71xx/msp_serial.c +++ b/arch/mips/pmc-sierra/msp71xx/msp_serial.c | |||
@@ -117,7 +117,7 @@ void __init msp_serial_setup(void) | |||
117 | 117 | ||
118 | /* Initialize first serial port */ | 118 | /* Initialize first serial port */ |
119 | up.mapbase = MSP_UART0_BASE; | 119 | up.mapbase = MSP_UART0_BASE; |
120 | up.membase = ioremap_nocache(up.mapbase,MSP_UART_REG_LEN); | 120 | up.membase = ioremap_nocache(up.mapbase, MSP_UART_REG_LEN); |
121 | up.irq = MSP_INT_UART0; | 121 | up.irq = MSP_INT_UART0; |
122 | up.uartclk = uartclk; | 122 | up.uartclk = uartclk; |
123 | up.regshift = 2; | 123 | up.regshift = 2; |
@@ -145,9 +145,9 @@ void __init msp_serial_setup(void) | |||
145 | if( DEBUG_PORT_BASE == KSEG1ADDR(MSP_UART1_BASE) ) { | 145 | if( DEBUG_PORT_BASE == KSEG1ADDR(MSP_UART1_BASE) ) { |
146 | if( mips_machtype == MACH_MSP4200_FPGA | 146 | if( mips_machtype == MACH_MSP4200_FPGA |
147 | || mips_machtype == MACH_MSP7120_FPGA ) | 147 | || mips_machtype == MACH_MSP7120_FPGA ) |
148 | initDebugPort(uartclk,19200); | 148 | initDebugPort(uartclk, 19200); |
149 | else | 149 | else |
150 | initDebugPort(uartclk,57600); | 150 | initDebugPort(uartclk, 57600); |
151 | } | 151 | } |
152 | #endif | 152 | #endif |
153 | break; | 153 | break; |
@@ -157,7 +157,7 @@ void __init msp_serial_setup(void) | |||
157 | } | 157 | } |
158 | 158 | ||
159 | up.mapbase = MSP_UART1_BASE; | 159 | up.mapbase = MSP_UART1_BASE; |
160 | up.membase = ioremap_nocache(up.mapbase,MSP_UART_REG_LEN); | 160 | up.membase = ioremap_nocache(up.mapbase, MSP_UART_REG_LEN); |
161 | up.irq = MSP_INT_UART1; | 161 | up.irq = MSP_INT_UART1; |
162 | up.line = 1; | 162 | up.line = 1; |
163 | up.private_data = (void*)UART1_STATUS_REG; | 163 | up.private_data = (void*)UART1_STATUS_REG; |
diff --git a/arch/mips/pmc-sierra/msp71xx/msp_setup.c b/arch/mips/pmc-sierra/msp71xx/msp_setup.c index 8f69b789be90..c93675615f5d 100644 --- a/arch/mips/pmc-sierra/msp71xx/msp_setup.c +++ b/arch/mips/pmc-sierra/msp71xx/msp_setup.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #define MSP_BOARD_RESET_GPIO 9 | 25 | #define MSP_BOARD_RESET_GPIO 9 |
26 | #endif | 26 | #endif |
27 | 27 | ||
28 | extern void msp_timer_init(void); | ||
29 | extern void msp_serial_setup(void); | 28 | extern void msp_serial_setup(void); |
30 | extern void pmctwiled_setup(void); | 29 | extern void pmctwiled_setup(void); |
31 | 30 | ||
@@ -149,8 +148,6 @@ void __init plat_mem_setup(void) | |||
149 | _machine_restart = msp_restart; | 148 | _machine_restart = msp_restart; |
150 | _machine_halt = msp_halt; | 149 | _machine_halt = msp_halt; |
151 | pm_power_off = msp_power_off; | 150 | pm_power_off = msp_power_off; |
152 | |||
153 | board_time_init = msp_timer_init; | ||
154 | } | 151 | } |
155 | 152 | ||
156 | void __init prom_init(void) | 153 | void __init prom_init(void) |
@@ -176,16 +173,13 @@ void __init prom_init(void) | |||
176 | case FAMILY_FPGA: | 173 | case FAMILY_FPGA: |
177 | if (FPGA_IS_MSP4200(revision)) { | 174 | if (FPGA_IS_MSP4200(revision)) { |
178 | /* Old-style revision ID */ | 175 | /* Old-style revision ID */ |
179 | mips_machgroup = MACH_GROUP_MSP; | ||
180 | mips_machtype = MACH_MSP4200_FPGA; | 176 | mips_machtype = MACH_MSP4200_FPGA; |
181 | } else { | 177 | } else { |
182 | mips_machgroup = MACH_GROUP_MSP; | ||
183 | mips_machtype = MACH_MSP_OTHER; | 178 | mips_machtype = MACH_MSP_OTHER; |
184 | } | 179 | } |
185 | break; | 180 | break; |
186 | 181 | ||
187 | case FAMILY_MSP4200: | 182 | case FAMILY_MSP4200: |
188 | mips_machgroup = MACH_GROUP_MSP; | ||
189 | #if defined(CONFIG_PMC_MSP4200_EVAL) | 183 | #if defined(CONFIG_PMC_MSP4200_EVAL) |
190 | mips_machtype = MACH_MSP4200_EVAL; | 184 | mips_machtype = MACH_MSP4200_EVAL; |
191 | #elif defined(CONFIG_PMC_MSP4200_GW) | 185 | #elif defined(CONFIG_PMC_MSP4200_GW) |
@@ -196,12 +190,10 @@ void __init prom_init(void) | |||
196 | break; | 190 | break; |
197 | 191 | ||
198 | case FAMILY_MSP4200_FPGA: | 192 | case FAMILY_MSP4200_FPGA: |
199 | mips_machgroup = MACH_GROUP_MSP; | ||
200 | mips_machtype = MACH_MSP4200_FPGA; | 193 | mips_machtype = MACH_MSP4200_FPGA; |
201 | break; | 194 | break; |
202 | 195 | ||
203 | case FAMILY_MSP7100: | 196 | case FAMILY_MSP7100: |
204 | mips_machgroup = MACH_GROUP_MSP; | ||
205 | #if defined(CONFIG_PMC_MSP7120_EVAL) | 197 | #if defined(CONFIG_PMC_MSP7120_EVAL) |
206 | mips_machtype = MACH_MSP7120_EVAL; | 198 | mips_machtype = MACH_MSP7120_EVAL; |
207 | #elif defined(CONFIG_PMC_MSP7120_GW) | 199 | #elif defined(CONFIG_PMC_MSP7120_GW) |
@@ -212,22 +204,14 @@ void __init prom_init(void) | |||
212 | break; | 204 | break; |
213 | 205 | ||
214 | case FAMILY_MSP7100_FPGA: | 206 | case FAMILY_MSP7100_FPGA: |
215 | mips_machgroup = MACH_GROUP_MSP; | ||
216 | mips_machtype = MACH_MSP7120_FPGA; | 207 | mips_machtype = MACH_MSP7120_FPGA; |
217 | break; | 208 | break; |
218 | 209 | ||
219 | default: | 210 | default: |
220 | /* we don't recognize the machine */ | 211 | /* we don't recognize the machine */ |
221 | mips_machgroup = MACH_GROUP_UNKNOWN; | ||
222 | mips_machtype = MACH_UNKNOWN; | 212 | mips_machtype = MACH_UNKNOWN; |
223 | break; | ||
224 | } | ||
225 | |||
226 | /* make sure we have the right initialization routine - sanity */ | ||
227 | if (mips_machgroup != MACH_GROUP_MSP) { | ||
228 | ppfinit("Unknown machine group in a " | ||
229 | "MSP initialization routine\n"); | ||
230 | panic("***Bogosity factor five***, exiting\n"); | 213 | panic("***Bogosity factor five***, exiting\n"); |
214 | break; | ||
231 | } | 215 | } |
232 | 216 | ||
233 | prom_init_cmdline(); | 217 | prom_init_cmdline(); |
diff --git a/arch/mips/pmc-sierra/msp71xx/msp_time.c b/arch/mips/pmc-sierra/msp71xx/msp_time.c index 2a2beac5a4f8..f221d4763625 100644 --- a/arch/mips/pmc-sierra/msp71xx/msp_time.c +++ b/arch/mips/pmc-sierra/msp71xx/msp_time.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <msp_int.h> | 36 | #include <msp_int.h> |
37 | #include <msp_regs.h> | 37 | #include <msp_regs.h> |
38 | 38 | ||
39 | void __init msp_timer_init(void) | 39 | void __init plat_time_init(void) |
40 | { | 40 | { |
41 | char *endp, *s; | 41 | char *endp, *s; |
42 | unsigned long cpu_rate = 0; | 42 | unsigned long cpu_rate = 0; |
@@ -81,7 +81,6 @@ void __init msp_timer_init(void) | |||
81 | mips_hpt_frequency = cpu_rate/2; | 81 | mips_hpt_frequency = cpu_rate/2; |
82 | } | 82 | } |
83 | 83 | ||
84 | |||
85 | void __init plat_timer_setup(struct irqaction *irq) | 84 | void __init plat_timer_setup(struct irqaction *irq) |
86 | { | 85 | { |
87 | #ifdef CONFIG_IRQ_MSP_CIC | 86 | #ifdef CONFIG_IRQ_MSP_CIC |
diff --git a/arch/mips/pmc-sierra/msp71xx/msp_usb.c b/arch/mips/pmc-sierra/msp71xx/msp_usb.c index 21f9c70b6923..f7ca4f582331 100644 --- a/arch/mips/pmc-sierra/msp71xx/msp_usb.c +++ b/arch/mips/pmc-sierra/msp71xx/msp_usb.c | |||
@@ -58,7 +58,7 @@ static struct platform_device msp_usbhost_device = { | |||
58 | .dma_mask = &msp_usbhost_dma_mask, | 58 | .dma_mask = &msp_usbhost_dma_mask, |
59 | .coherent_dma_mask = DMA_32BIT_MASK, | 59 | .coherent_dma_mask = DMA_32BIT_MASK, |
60 | }, | 60 | }, |
61 | .num_resources = ARRAY_SIZE (msp_usbhost_resources), | 61 | .num_resources = ARRAY_SIZE(msp_usbhost_resources), |
62 | .resource = msp_usbhost_resources, | 62 | .resource = msp_usbhost_resources, |
63 | }; | 63 | }; |
64 | #endif /* CONFIG_USB_EHCI_HCD */ | 64 | #endif /* CONFIG_USB_EHCI_HCD */ |
@@ -86,7 +86,7 @@ static struct platform_device msp_usbdev_device = { | |||
86 | .dma_mask = &msp_usbdev_dma_mask, | 86 | .dma_mask = &msp_usbdev_dma_mask, |
87 | .coherent_dma_mask = DMA_32BIT_MASK, | 87 | .coherent_dma_mask = DMA_32BIT_MASK, |
88 | }, | 88 | }, |
89 | .num_resources = ARRAY_SIZE (msp_usbdev_resources), | 89 | .num_resources = ARRAY_SIZE(msp_usbdev_resources), |
90 | .resource = msp_usbdev_resources, | 90 | .resource = msp_usbdev_resources, |
91 | }; | 91 | }; |
92 | #endif /* CONFIG_USB_GADGET */ | 92 | #endif /* CONFIG_USB_GADGET */ |
@@ -129,7 +129,7 @@ static int __init msp_usb_setup(void) | |||
129 | ppfinit("platform add USB HOST done %s.\n", | 129 | ppfinit("platform add USB HOST done %s.\n", |
130 | msp_devs[0]->name); | 130 | msp_devs[0]->name); |
131 | 131 | ||
132 | result = platform_add_devices(msp_devs, ARRAY_SIZE (msp_devs)); | 132 | result = platform_add_devices(msp_devs, ARRAY_SIZE(msp_devs)); |
133 | #endif /* CONFIG_USB_EHCI_HCD */ | 133 | #endif /* CONFIG_USB_EHCI_HCD */ |
134 | } | 134 | } |
135 | #if defined(CONFIG_USB_GADGET) | 135 | #if defined(CONFIG_USB_GADGET) |
@@ -139,7 +139,7 @@ static int __init msp_usb_setup(void) | |||
139 | ppfinit("platform add USB DEVICE done %s.\n", | 139 | ppfinit("platform add USB DEVICE done %s.\n", |
140 | msp_devs[0]->name); | 140 | msp_devs[0]->name); |
141 | 141 | ||
142 | result = platform_add_devices(msp_devs, ARRAY_SIZE (msp_devs)); | 142 | result = platform_add_devices(msp_devs, ARRAY_SIZE(msp_devs)); |
143 | } | 143 | } |
144 | #endif /* CONFIG_USB_GADGET */ | 144 | #endif /* CONFIG_USB_GADGET */ |
145 | #endif /* CONFIG_USB_EHCI_HCD || CONFIG_USB_GADGET */ | 145 | #endif /* CONFIG_USB_EHCI_HCD || CONFIG_USB_GADGET */ |