Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267306
b: refs/heads/master
c: 14a8d47
h: refs/heads/master
v: v3
  • Loading branch information
Jamie Iles authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent bb808db commit e0c8928
Show file tree
Hide file tree
Showing 3 changed files with 9 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: 6b1a98d1c4851235d9b6764b3f7b7db7909fc760
refs/heads/master: 14a8d47d4e9f51372996914c16bdbf1c34e209b5
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Required properties:
- compatible : one of:
- "ns8250"
- "ns8250dw"
- "ns16450"
- "ns16550a"
- "ns16550"
Expand Down
7 changes: 7 additions & 0 deletions trunk/drivers/tty/serial/of_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ static int __devinit of_platform_serial_setup(struct platform_device *ofdev,
}
}

if (of_device_is_compatible(np, "ns8250dw")) {
ret = serial8250_use_designware_io(port);
if (ret)
dev_warn(&ofdev->dev, "unable to register DesignWare 8250 helpers, continuing as a normal 8250\n");
}

port->type = type;
port->uartclk = clk;
port->flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_IOREMAP
Expand Down Expand Up @@ -176,6 +182,7 @@ static int of_platform_serial_remove(struct platform_device *ofdev)
*/
static struct of_device_id __devinitdata of_platform_serial_table[] = {
{ .compatible = "ns8250", .data = (void *)PORT_8250, },
{ .compatible = "ns8250dw", .data = (void *)PORT_8250, },
{ .compatible = "ns16450", .data = (void *)PORT_16450, },
{ .compatible = "ns16550a", .data = (void *)PORT_16550A, },
{ .compatible = "ns16550", .data = (void *)PORT_16550, },
Expand Down

0 comments on commit e0c8928

Please sign in to comment.