|
@@ -374,14 +374,8 @@ void octeon_write_lcd(const char *s)
|
|
|
*/
|
|
|
int octeon_get_boot_uart(void)
|
|
|
{
|
|
|
- int uart;
|
|
|
-#ifdef CONFIG_CAVIUM_OCTEON_2ND_KERNEL
|
|
|
- uart = 1;
|
|
|
-#else
|
|
|
- uart = (octeon_boot_desc_ptr->flags & OCTEON_BL_FLAG_CONSOLE_UART1) ?
|
|
|
+ return (octeon_boot_desc_ptr->flags & OCTEON_BL_FLAG_CONSOLE_UART1) ?
|
|
|
1 : 0;
|
|
|
-#endif
|
|
|
- return uart;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -901,14 +895,10 @@ void __init prom_init(void)
|
|
|
}
|
|
|
|
|
|
if (strstr(arcs_cmdline, "console=") == NULL) {
|
|
|
-#ifdef CONFIG_CAVIUM_OCTEON_2ND_KERNEL
|
|
|
- strcat(arcs_cmdline, " console=ttyS0,115200");
|
|
|
-#else
|
|
|
if (octeon_uart == 1)
|
|
|
strcat(arcs_cmdline, " console=ttyS1,115200");
|
|
|
else
|
|
|
strcat(arcs_cmdline, " console=ttyS0,115200");
|
|
|
-#endif
|
|
|
}
|
|
|
|
|
|
mips_hpt_frequency = octeon_get_clock_rate();
|