diff options
Diffstat (limited to 'arch/mips/mips-boards/generic/init.c')
-rw-r--r-- | arch/mips/mips-boards/generic/init.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/mips/mips-boards/generic/init.c b/arch/mips/mips-boards/generic/init.c index 58a0fe883591..88e9c2a7a2f9 100644 --- a/arch/mips/mips-boards/generic/init.c +++ b/arch/mips/mips-boards/generic/init.c | |||
@@ -145,7 +145,7 @@ static void __init console_config(void) | |||
145 | char parity = '\0', bits = '\0', flow = '\0'; | 145 | char parity = '\0', bits = '\0', flow = '\0'; |
146 | char *s; | 146 | char *s; |
147 | 147 | ||
148 | if ((strstr(prom_getcmdline(), "console=ttyS")) == NULL) { | 148 | if ((strstr(prom_getcmdline(), "console=")) == NULL) { |
149 | s = prom_getenv("modetty0"); | 149 | s = prom_getenv("modetty0"); |
150 | if (s) { | 150 | if (s) { |
151 | while (*s >= '0' && *s <= '9') | 151 | while (*s >= '0' && *s <= '9') |
@@ -167,7 +167,7 @@ static void __init console_config(void) | |||
167 | flow = 'r'; | 167 | flow = 'r'; |
168 | sprintf (console_string, " console=ttyS0,%d%c%c%c", baud, parity, bits, flow); | 168 | sprintf (console_string, " console=ttyS0,%d%c%c%c", baud, parity, bits, flow); |
169 | strcat (prom_getcmdline(), console_string); | 169 | strcat (prom_getcmdline(), console_string); |
170 | prom_printf("Config serial console:%s\n", console_string); | 170 | pr_info("Config serial console:%s\n", console_string); |
171 | } | 171 | } |
172 | } | 172 | } |
173 | #endif | 173 | #endif |
@@ -210,8 +210,9 @@ void __init kgdb_config (void) | |||
210 | generic_getDebugChar = rs_getDebugChar; | 210 | generic_getDebugChar = rs_getDebugChar; |
211 | } | 211 | } |
212 | 212 | ||
213 | prom_printf("KGDB: Using serial line /dev/ttyS%d at %d for session, " | 213 | pr_info("KGDB: Using serial line /dev/ttyS%d at %d for " |
214 | "please connect your debugger\n", line ? 1 : 0, speed); | 214 | "session, please connect your debugger\n", |
215 | line ? 1 : 0, speed); | ||
215 | 216 | ||
216 | { | 217 | { |
217 | char *s; | 218 | char *s; |
@@ -250,8 +251,6 @@ void __init mips_ejtag_setup (void) | |||
250 | 251 | ||
251 | void __init prom_init(void) | 252 | void __init prom_init(void) |
252 | { | 253 | { |
253 | u32 start, map, mask, data; | ||
254 | |||
255 | prom_argc = fw_arg0; | 254 | prom_argc = fw_arg0; |
256 | _prom_argv = (int *) fw_arg1; | 255 | _prom_argv = (int *) fw_arg1; |
257 | _prom_envp = (int *) fw_arg2; | 256 | _prom_envp = (int *) fw_arg2; |
@@ -277,6 +276,8 @@ void __init prom_init(void) | |||
277 | mips_revision_corid = MIPS_REVISION_CORID_CORE_EMUL_MSC; | 276 | mips_revision_corid = MIPS_REVISION_CORID_CORE_EMUL_MSC; |
278 | } | 277 | } |
279 | switch(mips_revision_corid) { | 278 | switch(mips_revision_corid) { |
279 | u32 start, map, mask, data; | ||
280 | |||
280 | case MIPS_REVISION_CORID_QED_RM5261: | 281 | case MIPS_REVISION_CORID_QED_RM5261: |
281 | case MIPS_REVISION_CORID_CORE_LV: | 282 | case MIPS_REVISION_CORID_CORE_LV: |
282 | case MIPS_REVISION_CORID_CORE_FPGA: | 283 | case MIPS_REVISION_CORID_CORE_FPGA: |
@@ -382,7 +383,7 @@ void __init prom_init(void) | |||
382 | board_nmi_handler_setup = mips_nmi_setup; | 383 | board_nmi_handler_setup = mips_nmi_setup; |
383 | board_ejtag_handler_setup = mips_ejtag_setup; | 384 | board_ejtag_handler_setup = mips_ejtag_setup; |
384 | 385 | ||
385 | prom_printf("\nLINUX started...\n"); | 386 | pr_info("\nLINUX started...\n"); |
386 | prom_init_cmdline(); | 387 | prom_init_cmdline(); |
387 | prom_meminit(); | 388 | prom_meminit(); |
388 | #ifdef CONFIG_SERIAL_8250_CONSOLE | 389 | #ifdef CONFIG_SERIAL_8250_CONSOLE |