Skip to content

Commit

Permalink
Merge pull request #102 from embeddedTS/linux-5.10.y-8250ts-rs485
Browse files Browse the repository at this point in the history
serial: 8250: 8250_ts: Enable RS-485 through RTS
  • Loading branch information
ts-kris authored Jul 18, 2024
2 parents 48c0038 + 8cfe671 commit 9076c38
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/tty/serial/8250/8250_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <linux/serial_8250.h>
#include <linux/tspc104_bus.h>

#include "8250.h"

static unsigned int tsisa_serial_in(struct uart_port *p, int offset)
{
struct tspc104_bus *bus = (struct tspc104_bus *)p->private_data;
Expand Down Expand Up @@ -52,6 +54,9 @@ static int technologic_ts16550_probe(struct platform_device *pdev)
port->type = PORT_16550A;
port->serial_in = tsisa_serial_in;
port->serial_out = tsisa_serial_out;
port->rs485_config = serial8250_em485_config;
uport.rs485_start_tx = serial8250_em485_start_tx;
uport.rs485_stop_tx = serial8250_em485_stop_tx;

line = serial8250_register_8250_port(&uport);

Expand Down

0 comments on commit 9076c38

Please sign in to comment.