aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sibyte/cfe/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/sibyte/cfe/setup.c')
-rw-r--r--arch/mips/sibyte/cfe/setup.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/mips/sibyte/cfe/setup.c b/arch/mips/sibyte/cfe/setup.c
index dbd6e6fdd3f9..33fce826f8bf 100644
--- a/arch/mips/sibyte/cfe/setup.c
+++ b/arch/mips/sibyte/cfe/setup.c
@@ -28,6 +28,7 @@
28#include <asm/bootinfo.h> 28#include <asm/bootinfo.h>
29#include <asm/reboot.h> 29#include <asm/reboot.h>
30#include <asm/sibyte/board.h> 30#include <asm/sibyte/board.h>
31#include <asm/smp-ops.h>
31 32
32#include <asm/fw/cfe/cfe_api.h> 33#include <asm/fw/cfe/cfe_api.h>
33#include <asm/fw/cfe/cfe_error.h> 34#include <asm/fw/cfe/cfe_error.h>
@@ -232,6 +233,9 @@ static int __init initrd_setup(char *str)
232 233
233#endif 234#endif
234 235
236extern struct plat_smp_ops sb_smp_ops;
237extern struct plat_smp_ops bcm1480_smp_ops;
238
235/* 239/*
236 * prom_init is called just after the cpu type is determined, from setup_arch() 240 * prom_init is called just after the cpu type is determined, from setup_arch()
237 */ 241 */
@@ -297,9 +301,6 @@ void __init prom_init(void)
297 * command line 301 * command line
298 */ 302 */
299 strcpy(arcs_cmdline, "root=/dev/ram0 "); 303 strcpy(arcs_cmdline, "root=/dev/ram0 ");
300#ifdef CONFIG_SIBYTE_PTSWARM
301 strcat(arcs_cmdline, "console=ttyS0,115200 ");
302#endif
303 } else { 304 } else {
304 /* The loader should have set the command line */ 305 /* The loader should have set the command line */
305 /* too early for panic to do any good */ 306 /* too early for panic to do any good */
@@ -340,6 +341,13 @@ void __init prom_init(void)
340 arcs_cmdline[CL_SIZE-1] = 0; 341 arcs_cmdline[CL_SIZE-1] = 0;
341 342
342 prom_meminit(); 343 prom_meminit();
344
345#if defined(CONFIG_SIBYTE_BCM112X) || defined(CONFIG_SIBYTE_SB1250)
346 register_smp_ops(&sb_smp_ops);
347#endif
348#if defined(CONFIG_SIBYTE_BCM1x55) || defined(CONFIG_SIBYTE_BCM1x80)
349 register_smp_ops(&bcm1480_smp_ops);
350#endif
343} 351}
344 352
345void __init prom_free_prom_memory(void) 353void __init prom_free_prom_memory(void)