Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364285
b: refs/heads/master
c: b0b8c84
h: refs/heads/master
i:
  364283: aec5446
v: v3
  • Loading branch information
Heikki Krogerus authored and Greg Kroah-Hartman committed Mar 25, 2013
1 parent 69c5957 commit 14ae918
Show file tree
Hide file tree
Showing 3 changed files with 14 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: 44a459fd83376d08b0dea776354761ebb1bacde1
refs/heads/master: b0b8c84cf58d2486d48f486b5c47af7a7a33a497
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Optional properties:
- no-loopback-test: set to indicate that the port does not implements loopback
test mode
- fifo-size: the fifo size of the UART.
- auto-flow-control: one way to enable automatic flow control support. The
driver is allowed to detect support for the capability even without this
property.

Example:

Expand Down
13 changes: 10 additions & 3 deletions trunk/drivers/tty/serial/of_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/serial_core.h>
#include <linux/serial_8250.h>
#include <linux/serial_reg.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/nwpserial.h>
#include <linux/clk.h>

#include "8250/8250.h"

struct of_serial_info {
struct clk *clk;
int type;
Expand Down Expand Up @@ -171,11 +172,17 @@ static int of_platform_serial_probe(struct platform_device *ofdev)
#ifdef CONFIG_SERIAL_8250
case PORT_8250 ... PORT_MAX_8250:
{
/* For now the of bindings don't support the extra
8250 specific bits */
struct uart_8250_port port8250;
memset(&port8250, 0, sizeof(port8250));
port8250.port = port;

if (port.fifosize)
port8250.capabilities = UART_CAP_FIFO;

if (of_property_read_bool(ofdev->dev.of_node,
"auto-flow-control"))
port8250.capabilities |= UART_CAP_AFE;

ret = serial8250_register_8250_port(&port8250);
break;
}
Expand Down

0 comments on commit 14ae918

Please sign in to comment.