diff options
Diffstat (limited to 'arch/mips/momentum')
-rw-r--r-- | arch/mips/momentum/Kconfig | 6 | ||||
-rw-r--r-- | arch/mips/momentum/jaguar_atx/prom.c | 3 | ||||
-rw-r--r-- | arch/mips/momentum/jaguar_atx/setup.c | 6 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_3/prom.c | 3 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_3/setup.c | 6 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_c/cpci-irq.c | 15 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_c/setup.c | 4 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_c/uart-irq.c | 15 | ||||
-rw-r--r-- | arch/mips/momentum/ocelot_g/setup.c | 6 |
9 files changed, 28 insertions, 36 deletions
diff --git a/arch/mips/momentum/Kconfig b/arch/mips/momentum/Kconfig new file mode 100644 index 000000000000..70a61cf7174d --- /dev/null +++ b/arch/mips/momentum/Kconfig | |||
@@ -0,0 +1,6 @@ | |||
1 | config JAGUAR_DMALOW | ||
2 | bool "Low DMA Mode" | ||
3 | depends on MOMENCO_JAGUAR_ATX | ||
4 | help | ||
5 | Select to Y if jump JP5 is set on your board, N otherwise. Normally | ||
6 | the jumper is set, so if you feel unsafe, just say Y. | ||
diff --git a/arch/mips/momentum/jaguar_atx/prom.c b/arch/mips/momentum/jaguar_atx/prom.c index 14ae2e713585..aae7a802767a 100644 --- a/arch/mips/momentum/jaguar_atx/prom.c +++ b/arch/mips/momentum/jaguar_atx/prom.c | |||
@@ -236,8 +236,9 @@ void __init prom_init(void) | |||
236 | #endif | 236 | #endif |
237 | } | 237 | } |
238 | 238 | ||
239 | void __init prom_free_prom_memory(void) | 239 | unsigned long __init prom_free_prom_memory(void) |
240 | { | 240 | { |
241 | return 0; | ||
241 | } | 242 | } |
242 | 243 | ||
243 | void __init prom_fixup_mem_map(unsigned long start, unsigned long end) | 244 | void __init prom_fixup_mem_map(unsigned long start, unsigned long end) |
diff --git a/arch/mips/momentum/jaguar_atx/setup.c b/arch/mips/momentum/jaguar_atx/setup.c index 90288cf2b1e0..768bf4406452 100644 --- a/arch/mips/momentum/jaguar_atx/setup.c +++ b/arch/mips/momentum/jaguar_atx/setup.c | |||
@@ -351,7 +351,7 @@ static __init int __init ja_pci_init(void) | |||
351 | 351 | ||
352 | arch_initcall(ja_pci_init); | 352 | arch_initcall(ja_pci_init); |
353 | 353 | ||
354 | static int __init momenco_jaguar_atx_setup(void) | 354 | void __init plat_setup(void) |
355 | { | 355 | { |
356 | unsigned int tmpword; | 356 | unsigned int tmpword; |
357 | 357 | ||
@@ -467,8 +467,4 @@ static int __init momenco_jaguar_atx_setup(void) | |||
467 | 467 | ||
468 | } | 468 | } |
469 | #endif | 469 | #endif |
470 | |||
471 | return 0; | ||
472 | } | 470 | } |
473 | |||
474 | early_initcall(momenco_jaguar_atx_setup); | ||
diff --git a/arch/mips/momentum/ocelot_3/prom.c b/arch/mips/momentum/ocelot_3/prom.c index c4fa9c525faa..9803daa2a792 100644 --- a/arch/mips/momentum/ocelot_3/prom.c +++ b/arch/mips/momentum/ocelot_3/prom.c | |||
@@ -239,8 +239,9 @@ void __init prom_init(void) | |||
239 | #endif | 239 | #endif |
240 | } | 240 | } |
241 | 241 | ||
242 | void __init prom_free_prom_memory(void) | 242 | unsigned long __init prom_free_prom_memory(void) |
243 | { | 243 | { |
244 | return 0; | ||
244 | } | 245 | } |
245 | 246 | ||
246 | void __init prom_fixup_mem_map(unsigned long start, unsigned long end) | 247 | void __init prom_fixup_mem_map(unsigned long start, unsigned long end) |
diff --git a/arch/mips/momentum/ocelot_3/setup.c b/arch/mips/momentum/ocelot_3/setup.c index ce2efcbab7aa..a7803e08f9db 100644 --- a/arch/mips/momentum/ocelot_3/setup.c +++ b/arch/mips/momentum/ocelot_3/setup.c | |||
@@ -307,7 +307,7 @@ static __init int __init ja_pci_init(void) | |||
307 | 307 | ||
308 | arch_initcall(ja_pci_init); | 308 | arch_initcall(ja_pci_init); |
309 | 309 | ||
310 | static int __init momenco_ocelot_3_setup(void) | 310 | void __init plat_setup(void) |
311 | { | 311 | { |
312 | unsigned int tmpword; | 312 | unsigned int tmpword; |
313 | 313 | ||
@@ -391,8 +391,4 @@ static int __init momenco_ocelot_3_setup(void) | |||
391 | 391 | ||
392 | /* Support for 128 MB memory */ | 392 | /* Support for 128 MB memory */ |
393 | add_memory_region(0x0, 0x08000000, BOOT_MEM_RAM); | 393 | add_memory_region(0x0, 0x08000000, BOOT_MEM_RAM); |
394 | |||
395 | return 0; | ||
396 | } | 394 | } |
397 | |||
398 | early_initcall(momenco_ocelot_3_setup); | ||
diff --git a/arch/mips/momentum/ocelot_c/cpci-irq.c b/arch/mips/momentum/ocelot_c/cpci-irq.c index dea48b3ad687..bd885785e2f9 100644 --- a/arch/mips/momentum/ocelot_c/cpci-irq.c +++ b/arch/mips/momentum/ocelot_c/cpci-irq.c | |||
@@ -129,14 +129,13 @@ void ll_cpci_irq(struct pt_regs *regs) | |||
129 | #define shutdown_cpci_irq disable_cpci_irq | 129 | #define shutdown_cpci_irq disable_cpci_irq |
130 | 130 | ||
131 | struct hw_interrupt_type cpci_irq_type = { | 131 | struct hw_interrupt_type cpci_irq_type = { |
132 | "CPCI/FPGA", | 132 | .typename = "CPCI/FPGA", |
133 | startup_cpci_irq, | 133 | .startup = startup_cpci_irq, |
134 | shutdown_cpci_irq, | 134 | .shutdown = shutdown_cpci_irq, |
135 | enable_cpci_irq, | 135 | .enable = enable_cpci_irq, |
136 | disable_cpci_irq, | 136 | .disable = disable_cpci_irq, |
137 | mask_and_ack_cpci_irq, | 137 | .ack = mask_and_ack_cpci_irq, |
138 | end_cpci_irq, | 138 | .end = end_cpci_irq, |
139 | NULL | ||
140 | }; | 139 | }; |
141 | 140 | ||
142 | void cpci_irq_init(void) | 141 | void cpci_irq_init(void) |
diff --git a/arch/mips/momentum/ocelot_c/setup.c b/arch/mips/momentum/ocelot_c/setup.c index 844ddd06349b..ce70fc96f160 100644 --- a/arch/mips/momentum/ocelot_c/setup.c +++ b/arch/mips/momentum/ocelot_c/setup.c | |||
@@ -222,7 +222,7 @@ void momenco_time_init(void) | |||
222 | rtc_set_time = m48t37y_set_time; | 222 | rtc_set_time = m48t37y_set_time; |
223 | } | 223 | } |
224 | 224 | ||
225 | static void __init momenco_ocelot_c_setup(void) | 225 | void __init plat_setup(void) |
226 | { | 226 | { |
227 | unsigned int tmpword; | 227 | unsigned int tmpword; |
228 | 228 | ||
@@ -340,8 +340,6 @@ static void __init momenco_ocelot_c_setup(void) | |||
340 | } | 340 | } |
341 | } | 341 | } |
342 | 342 | ||
343 | early_initcall(momenco_ocelot_c_setup); | ||
344 | |||
345 | #ifndef CONFIG_64BIT | 343 | #ifndef CONFIG_64BIT |
346 | /* This needs to be one of the first initcalls, because no I/O port access | 344 | /* This needs to be one of the first initcalls, because no I/O port access |
347 | can work before this */ | 345 | can work before this */ |
diff --git a/arch/mips/momentum/ocelot_c/uart-irq.c b/arch/mips/momentum/ocelot_c/uart-irq.c index ebe1507b17df..755bde5146be 100644 --- a/arch/mips/momentum/ocelot_c/uart-irq.c +++ b/arch/mips/momentum/ocelot_c/uart-irq.c | |||
@@ -122,14 +122,13 @@ void ll_uart_irq(struct pt_regs *regs) | |||
122 | #define shutdown_uart_irq disable_uart_irq | 122 | #define shutdown_uart_irq disable_uart_irq |
123 | 123 | ||
124 | struct hw_interrupt_type uart_irq_type = { | 124 | struct hw_interrupt_type uart_irq_type = { |
125 | "UART/FPGA", | 125 | .typename = "UART/FPGA", |
126 | startup_uart_irq, | 126 | .startup = startup_uart_irq, |
127 | shutdown_uart_irq, | 127 | .shutdown = shutdown_uart_irq, |
128 | enable_uart_irq, | 128 | .enable = enable_uart_irq, |
129 | disable_uart_irq, | 129 | .disable = disable_uart_irq, |
130 | mask_and_ack_uart_irq, | 130 | .ack = mask_and_ack_uart_irq, |
131 | end_uart_irq, | 131 | .end = end_uart_irq, |
132 | NULL | ||
133 | }; | 132 | }; |
134 | 133 | ||
135 | void uart_irq_init(void) | 134 | void uart_irq_init(void) |
diff --git a/arch/mips/momentum/ocelot_g/setup.c b/arch/mips/momentum/ocelot_g/setup.c index 38a78ab8c830..6336751391c3 100644 --- a/arch/mips/momentum/ocelot_g/setup.c +++ b/arch/mips/momentum/ocelot_g/setup.c | |||
@@ -160,7 +160,7 @@ static void __init setup_l3cache(unsigned long size) | |||
160 | printk("Done\n"); | 160 | printk("Done\n"); |
161 | } | 161 | } |
162 | 162 | ||
163 | static int __init momenco_ocelot_g_setup(void) | 163 | void __init plat_setup(void) |
164 | { | 164 | { |
165 | void (*l3func)(unsigned long) = (void *) KSEG1ADDR(setup_l3cache); | 165 | void (*l3func)(unsigned long) = (void *) KSEG1ADDR(setup_l3cache); |
166 | unsigned int tmpword; | 166 | unsigned int tmpword; |
@@ -240,12 +240,8 @@ static int __init momenco_ocelot_g_setup(void) | |||
240 | 240 | ||
241 | /* FIXME: Fix up the DiskOnChip mapping */ | 241 | /* FIXME: Fix up the DiskOnChip mapping */ |
242 | MV_WRITE(0x468, 0xfef73); | 242 | MV_WRITE(0x468, 0xfef73); |
243 | |||
244 | return 0; | ||
245 | } | 243 | } |
246 | 244 | ||
247 | early_initcall(momenco_ocelot_g_setup); | ||
248 | |||
249 | /* This needs to be one of the first initcalls, because no I/O port access | 245 | /* This needs to be one of the first initcalls, because no I/O port access |
250 | can work before this */ | 246 | can work before this */ |
251 | 247 | ||