Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19911
b: refs/heads/master
c: e9feeb2
h: refs/heads/master
i:
  19909: 91573d5
  19907: fc46773
  19903: 0c78e4b
v: v3
  • Loading branch information
Ralf Baechle committed Feb 7, 2006
1 parent 899ba4a commit 80766a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5033d780310ddc5b679ed37ccefcdb87a30ef0c
refs/heads/master: e9feeb207e55373f718b33e0d6cb0c2f8b58f3c1
10 changes: 8 additions & 2 deletions trunk/arch/mips/sgi-ip22/ip22-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ extern void ip22_time_init(void) __init;
void __init plat_setup(void)
{
char *ctype;
char *cserial;

board_be_init = ip22_be_init;
ip22_time_init();
Expand All @@ -81,17 +82,22 @@ void __init plat_setup(void)
/* ARCS console environment variable is set to "g?" for
* graphics console, it is set to "d" for the first serial
* line and "d2" for the second serial line.
*
* Need to check if the case is 'g' but no keyboard:
* (ConsoleIn/Out = serial)
*/
ctype = ArcGetEnvironmentVariable("console");
if (ctype && *ctype == 'd') {
cserial = ArcGetEnvironmentVariable("ConsoleOut");

if ((ctype && *ctype == 'd') || (cserial && *cserial == 's')) {
static char options[8];
char *baud = ArcGetEnvironmentVariable("dbaud");
if (baud)
strcpy(options, baud);
add_preferred_console("ttyS", *(ctype + 1) == '2' ? 1 : 0,
baud ? options : NULL);
} else if (!ctype || *ctype != 'g') {
/* Use ARC if we don't want serial ('d') or Newport ('g'). */
/* Use ARC if we don't want serial ('d') or graphics ('g'). */
prom_flags |= PROM_FLAG_USE_AS_CONSOLE;
add_preferred_console("arc", 0, NULL);
}
Expand Down

0 comments on commit 80766a0

Please sign in to comment.