diff options
author | Yoichi Yuasa <yuasa@linux-mips.org> | 2010-02-02 04:40:04 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-02-27 06:53:22 -0500 |
commit | ab4ba291683d07038c7ddf1eec191d3d09e1f468 (patch) | |
tree | 267b4cefdfe33510ffe9eb8ea15de8ef71bc089d /arch/mips | |
parent | 7084338eb8eb0cc021ba86c340157bad397f3f0b (diff) |
MIPS: TXx9: Remove forced serial console setting
It is not always used, even if it is available.
Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
Cc: linux-mips <linux-mips@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/933/
Acked-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/txx9/generic.h | 1 | ||||
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 5 | ||||
-rw-r--r-- | arch/mips/txx9/jmr3927/setup.c | 7 | ||||
-rw-r--r-- | arch/mips/txx9/rbtx4927/setup.c | 7 | ||||
-rw-r--r-- | arch/mips/txx9/rbtx4938/setup.c | 6 |
5 files changed, 0 insertions, 26 deletions
diff --git a/arch/mips/include/asm/txx9/generic.h b/arch/mips/include/asm/txx9/generic.h index 827dc22be2ea..64887d3c7ec3 100644 --- a/arch/mips/include/asm/txx9/generic.h +++ b/arch/mips/include/asm/txx9/generic.h | |||
@@ -42,7 +42,6 @@ struct txx9_board_vec { | |||
42 | }; | 42 | }; |
43 | extern struct txx9_board_vec *txx9_board_vec; | 43 | extern struct txx9_board_vec *txx9_board_vec; |
44 | extern int (*txx9_irq_dispatch)(int pending); | 44 | extern int (*txx9_irq_dispatch)(int pending); |
45 | char *prom_getcmdline(void); | ||
46 | const char *prom_getenv(const char *name); | 45 | const char *prom_getenv(const char *name); |
47 | void txx9_wdt_init(unsigned long base); | 46 | void txx9_wdt_init(unsigned long base); |
48 | void txx9_wdt_now(unsigned long base); | 47 | void txx9_wdt_now(unsigned long base); |
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index e27809b6d04f..7174d830dd05 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
@@ -399,11 +399,6 @@ const char *get_system_type(void) | |||
399 | return txx9_system_type; | 399 | return txx9_system_type; |
400 | } | 400 | } |
401 | 401 | ||
402 | char * __init prom_getcmdline(void) | ||
403 | { | ||
404 | return &(arcs_cmdline[0]); | ||
405 | } | ||
406 | |||
407 | const char *__init prom_getenv(const char *name) | 402 | const char *__init prom_getenv(const char *name) |
408 | { | 403 | { |
409 | const s32 *str; | 404 | const s32 *str; |
diff --git a/arch/mips/txx9/jmr3927/setup.c b/arch/mips/txx9/jmr3927/setup.c index 25e50a7be387..3206f76f300b 100644 --- a/arch/mips/txx9/jmr3927/setup.c +++ b/arch/mips/txx9/jmr3927/setup.c | |||
@@ -67,8 +67,6 @@ static void jmr3927_board_init(void); | |||
67 | 67 | ||
68 | static void __init jmr3927_mem_setup(void) | 68 | static void __init jmr3927_mem_setup(void) |
69 | { | 69 | { |
70 | char *argptr; | ||
71 | |||
72 | set_io_port_base(JMR3927_PORT_BASE + JMR3927_PCIIO); | 70 | set_io_port_base(JMR3927_PORT_BASE + JMR3927_PCIIO); |
73 | 71 | ||
74 | _machine_restart = jmr3927_machine_restart; | 72 | _machine_restart = jmr3927_machine_restart; |
@@ -97,11 +95,6 @@ static void __init jmr3927_mem_setup(void) | |||
97 | jmr3927_board_init(); | 95 | jmr3927_board_init(); |
98 | 96 | ||
99 | tx3927_sio_init(0, 1 << 1); /* ch1: noCTS */ | 97 | tx3927_sio_init(0, 1 << 1); /* ch1: noCTS */ |
100 | #ifdef CONFIG_SERIAL_TXX9_CONSOLE | ||
101 | argptr = prom_getcmdline(); | ||
102 | if (!strstr(argptr, "console=")) | ||
103 | strcat(argptr, " console=ttyS1,115200"); | ||
104 | #endif | ||
105 | } | 98 | } |
106 | 99 | ||
107 | static void __init jmr3927_pci_setup(void) | 100 | static void __init jmr3927_pci_setup(void) |
diff --git a/arch/mips/txx9/rbtx4927/setup.c b/arch/mips/txx9/rbtx4927/setup.c index ee468eaee4f7..b15adfc2d726 100644 --- a/arch/mips/txx9/rbtx4927/setup.c +++ b/arch/mips/txx9/rbtx4927/setup.c | |||
@@ -187,8 +187,6 @@ static void __init rbtx4937_clock_init(void); | |||
187 | 187 | ||
188 | static void __init rbtx4927_mem_setup(void) | 188 | static void __init rbtx4927_mem_setup(void) |
189 | { | 189 | { |
190 | char *argptr; | ||
191 | |||
192 | if (TX4927_REV_PCODE() == 0x4927) { | 190 | if (TX4927_REV_PCODE() == 0x4927) { |
193 | rbtx4927_clock_init(); | 191 | rbtx4927_clock_init(); |
194 | tx4927_setup(); | 192 | tx4927_setup(); |
@@ -213,11 +211,6 @@ static void __init rbtx4927_mem_setup(void) | |||
213 | gpio_direction_output(15, 1); | 211 | gpio_direction_output(15, 1); |
214 | 212 | ||
215 | tx4927_sio_init(0, 0); | 213 | tx4927_sio_init(0, 0); |
216 | #ifdef CONFIG_SERIAL_TXX9_CONSOLE | ||
217 | argptr = prom_getcmdline(); | ||
218 | if (!strstr(argptr, "console=")) | ||
219 | strcat(argptr, " console=ttyS0,38400"); | ||
220 | #endif | ||
221 | } | 214 | } |
222 | 215 | ||
223 | static void __init rbtx4927_clock_init(void) | 216 | static void __init rbtx4927_clock_init(void) |
diff --git a/arch/mips/txx9/rbtx4938/setup.c b/arch/mips/txx9/rbtx4938/setup.c index d66509b14284..d6e70dab3bd3 100644 --- a/arch/mips/txx9/rbtx4938/setup.c +++ b/arch/mips/txx9/rbtx4938/setup.c | |||
@@ -153,7 +153,6 @@ static void __init rbtx4938_time_init(void) | |||
153 | static void __init rbtx4938_mem_setup(void) | 153 | static void __init rbtx4938_mem_setup(void) |
154 | { | 154 | { |
155 | unsigned long long pcfg; | 155 | unsigned long long pcfg; |
156 | char *argptr; | ||
157 | 156 | ||
158 | if (txx9_master_clock == 0) | 157 | if (txx9_master_clock == 0) |
159 | txx9_master_clock = 25000000; /* 25MHz */ | 158 | txx9_master_clock = 25000000; /* 25MHz */ |
@@ -168,11 +167,6 @@ static void __init rbtx4938_mem_setup(void) | |||
168 | #endif | 167 | #endif |
169 | 168 | ||
170 | tx4938_sio_init(7372800, 0); | 169 | tx4938_sio_init(7372800, 0); |
171 | #ifdef CONFIG_SERIAL_TXX9_CONSOLE | ||
172 | argptr = prom_getcmdline(); | ||
173 | if (!strstr(argptr, "console=")) | ||
174 | strcat(argptr, " console=ttyS0,38400"); | ||
175 | #endif | ||
176 | 170 | ||
177 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_PIO58_61 | 171 | #ifdef CONFIG_TOSHIBA_RBTX4938_MPLEX_PIO58_61 |
178 | pr_info("PIOSEL: disabling both ATA and NAND selection\n"); | 172 | pr_info("PIOSEL: disabling both ATA and NAND selection\n"); |