Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48511
b: refs/heads/master
c: 703404e
h: refs/heads/master
i:
  48509: 0f3a593
  48507: 8005b43
  48503: d6bcce0
  48495: f02dc42
  48479: bc7a49d
  48447: d434946
  48383: d4416ff
v: v3
  • Loading branch information
Jamie Lenehan authored and Paul Mundt committed Feb 13, 2007
1 parent c02a352 commit dfc84b3
Show file tree
Hide file tree
Showing 2 changed files with 23 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: 106dac130d6fb6670a0bbfa8c714054990b41b03
refs/heads/master: 703404ea441fc198d03ca3e9edbac6e09b5415f4
24 changes: 22 additions & 2 deletions trunk/arch/sh/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,32 @@ static struct console scif_console = {
};

#if defined(CONFIG_CPU_SH4) && !defined(CONFIG_SH_STANDARD_BIOS)
#define DEFAULT_BAUD 115200
/*
* Simple SCIF init, primarily aimed at SH7750 and other similar SH-4
* devices that aren't using sh-ipl+g.
*/
static void scif_sercon_init(int baud)
static void scif_sercon_init(char *s)
{
unsigned baud = DEFAULT_BAUD;
char *e;

if (*s == ',')
++s;

if (*s) {
/* ignore ioport/device name */
s += strcspn(s, ",");
if (*s == ',')
s++;
}

if (*s) {
baud = simple_strtoul(s, &e, 0);
if (baud == 0 || s == e)
baud = DEFAULT_BAUD;
}

ctrl_outw(0, scif_port.mapbase + 8);
ctrl_outw(0, scif_port.mapbase);

Expand Down Expand Up @@ -167,7 +187,7 @@ int __init setup_early_printk(char *buf)
early_console = &scif_console;

#if defined(CONFIG_CPU_SH4) && !defined(CONFIG_SH_STANDARD_BIOS)
scif_sercon_init(115200);
scif_sercon_init(buf + 6);
#endif
}
#endif
Expand Down

0 comments on commit dfc84b3

Please sign in to comment.