]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/alchemy/xxs1500/board_setup.c
Merge branch 'for-next' of git://git.o-hand.com/linux-mfd
[linux-2.6-omap-h63xx.git] / arch / mips / alchemy / xxs1500 / board_setup.c
index 4c587acac5c3707a4a21e3ab28f96eb62dbf8b26..a2634fabc50d429bb9494d94bb97b24233a1826b 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <asm/mach-au1x00/au1000.h>
 
+#include <prom.h>
+
 void board_reset(void)
 {
        /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */
@@ -38,6 +40,16 @@ void __init board_setup(void)
 {
        u32 pin_func;
 
+#ifdef CONFIG_SERIAL_8250_CONSOLE
+       char *argptr;
+       argptr = prom_getcmdline();
+       argptr = strstr(argptr, "console=");
+       if (argptr == NULL) {
+               argptr = prom_getcmdline();
+               strcat(argptr, " console=ttyS0,115200");
+       }
+#endif
+
        /* Set multiple use pins (UART3/GPIO) to UART (it's used as UART too) */
        pin_func  = au_readl(SYS_PINFUNC) & ~SYS_PF_UR3;
        pin_func |= SYS_PF_UR3;