Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5305
b: refs/heads/master
c: 11be00c
h: refs/heads/master
i:
  5303: 669e424
v: v3
  • Loading branch information
Bjorn Helgaas authored and Linus Torvalds committed Jul 28, 2005
1 parent 242ee1a commit 4bd90e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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: 8b378def5a386c4a7f15b51ed79802badb9f5a70
refs/heads/master: 11be00cba6be114f861123cfc6779f195a615d22
14 changes: 11 additions & 3 deletions trunk/drivers/firmware/pcdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,22 @@ setup_serial_console(struct pcdp_uart *uart)
#ifdef CONFIG_SERIAL_8250_CONSOLE
int mmio;
static char options[64], *p = options;
char parity;

mmio = (uart->addr.address_space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY);
p += sprintf(p, "console=uart,%s,0x%lx",
mmio ? "mmio" : "io", uart->addr.address);
if (uart->baud)
if (uart->baud) {
p += sprintf(p, ",%lu", uart->baud);
if (uart->bits)
p += sprintf(p, "n%d", uart->bits);
if (uart->bits) {
switch (uart->parity) {
case 0x2: parity = 'e'; break;
case 0x3: parity = 'o'; break;
default: parity = 'n';
}
p += sprintf(p, "%c%d", parity, uart->bits);
}
}

return early_serial_console_init(options);
#else
Expand Down

0 comments on commit 4bd90e2

Please sign in to comment.