diff options
Diffstat (limited to 'arch/mips/alchemy/devboards/pb1200/board_setup.c')
-rw-r--r-- | arch/mips/alchemy/devboards/pb1200/board_setup.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/arch/mips/alchemy/devboards/pb1200/board_setup.c b/arch/mips/alchemy/devboards/pb1200/board_setup.c index 8f03dc8fdd2..b5585e46200 100644 --- a/arch/mips/alchemy/devboards/pb1200/board_setup.c +++ b/arch/mips/alchemy/devboards/pb1200/board_setup.c | |||
@@ -46,7 +46,19 @@ void board_reset(void) | |||
46 | 46 | ||
47 | void __init board_setup(void) | 47 | void __init board_setup(void) |
48 | { | 48 | { |
49 | char *argptr = NULL; | 49 | char *argptr; |
50 | |||
51 | argptr = prom_getcmdline(); | ||
52 | #ifdef CONFIG_SERIAL_8250_CONSOLE | ||
53 | argptr = strstr(argptr, "console="); | ||
54 | if (argptr == NULL) { | ||
55 | argptr = prom_getcmdline(); | ||
56 | strcat(argptr, " console=ttyS0,115200"); | ||
57 | } | ||
58 | #endif | ||
59 | #ifdef CONFIG_FB_AU1200 | ||
60 | strcat(argptr, " video=au1200fb:panel:bs"); | ||
61 | #endif | ||
50 | 62 | ||
51 | #if 0 | 63 | #if 0 |
52 | { | 64 | { |
@@ -104,16 +116,6 @@ void __init board_setup(void) | |||
104 | } | 116 | } |
105 | #endif | 117 | #endif |
106 | 118 | ||
107 | #ifdef CONFIG_FB_AU1200 | ||
108 | argptr = prom_getcmdline(); | ||
109 | #ifdef CONFIG_MIPS_PB1200 | ||
110 | strcat(argptr, " video=au1200fb:panel:bs"); | ||
111 | #endif | ||
112 | #ifdef CONFIG_MIPS_DB1200 | ||
113 | strcat(argptr, " video=au1200fb:panel:bs"); | ||
114 | #endif | ||
115 | #endif | ||
116 | |||
117 | /* | 119 | /* |
118 | * The Pb1200 development board uses external MUX for PSC0 to | 120 | * The Pb1200 development board uses external MUX for PSC0 to |
119 | * support SMB/SPI. bcsr->resets bit 12: 0=SMB 1=SPI | 121 | * support SMB/SPI. bcsr->resets bit 12: 0=SMB 1=SPI |