Re: tty: uart: custom speed

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

 



On Mon, Mar 04, 2019 at 05:46:54PM +0530, Subhashini Rao Beerisetty wrote:
>   Hi All,
> 
> 
> I’ve an UART ports on Xilinx FPGA board and it gets connected to PC
> via PCIe bus. I could not find any kernel serial driver which supports
> our hardware so I plan to develop a new driver. I see two approaches
> to develop an UART driver i.e. either by using tty_register_driver()
> or an uart_register_driver().
> 
> 
> Regarding my UART module, it has a counter of 16 bits and runs on a
> 32Mhz clock. It supports all the standard & non-standard baud’s up to
> 4Mbps.

What type of UART is it?  Odds are it is based on an existing design, no
one creates a brand-new UART anymore.  Hopefully.  If not, what a
waste...

> If I used struct tty_operations, I noticed that baud rate changing is
> done via “.set_termios” API, but this method only supports standard
> baud rates. I’d like to know why this API does not support
> non-standard baud rates?

Why do you think it does not?

Anyway, use the uart interface as odds are your uart is already
supported.  Get the data sheet and start reading :)

good luck,

greg k-h



[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