Support for rs485 in 8250_dw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I would like to add rs485 support to the Synopsys DesignWare uart,
8250_dw.c but need help on how this should be done.

rs485 background:
Simplified rs485 is a half duplex standard where the RTS signal needs
to be high during the whole transmit and low during receive. The Atmel
AT91 for example have a rs485 mode where the hardware handles the RTS
signal automatically. Most other uart controllers don't have this mode
feature so toggling RTS needs to be done manually or
semi-automatically from the driver.

problem:
To toggle RTS i would like to implement code in ops->start_tx and
possibly ops->startup or ops->stop_tx. I also need to implement a
ioctl callback to configure the rs485 part. These ops are not
available in 8250_dw.c but in the framework 8250_core.c (except for
ioctl). So should I add the rs485 support to the 8250 framework or
should I export callbacks and implement the functionality in the
8250_dw.c? Any suggestions?

BR,
Mattias Wallin
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux