Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96286
b: refs/heads/master
c: 4a65e38
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed May 8, 2008
1 parent 84ec925 commit 31023c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fba32136579648a5782a41e93d4a79547456a89
refs/heads/master: 4a65e3827bcff072e5f4a96b3f73f9f17eb7d6d8
6 changes: 6 additions & 0 deletions trunk/arch/sh/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ static void scif_sercon_init(char *s)
{
struct uart_port *port = &scif_port;
unsigned baud = DEFAULT_BAUD;
unsigned int status;
char *e;

if (*s == ',')
Expand All @@ -161,12 +162,17 @@ static void scif_sercon_init(char *s)
baud = DEFAULT_BAUD;
}

do {
status = sci_in(port, SCxSR);
} while (!(status & SCxSR_TEND(port)));

sci_out(port, SCSCR, 0); /* TE=0, RE=0 */
sci_out(port, SCSMR, 0);

/* Set baud rate */
sci_out(port, SCBRR, (CONFIG_SH_PCLK_FREQ + 16 * baud) /
(32 * baud) - 1);
udelay((1000000+(baud-1)) / baud); /* Wait one bit interval */

sci_out(port, SCFCR, 12);
sci_out(port, SCFCR, 8);
Expand Down

0 comments on commit 31023c5

Please sign in to comment.