Hello,

        Splitting up UART from tty interface is analogous to separating Siamese
twins. It might work but then it might fail, with lot more chances of
failure. Easy way would be to write a serial module driver that
registers the interrupt, with the 4 functionality that you need. Set the
number of uart to 1 in the kernel config option just to enable UART0 and
disable the rest so that the others do not interfere with your module
driver.

This is just an idea, but i bet there are better ways to do this.

Regards,
Philby


On Fri, 2009-04-17 at 19:04 +0530, Azam Ansari wrote:
> Hi All,
> 
> I tried using the 8250 Uart driver on DM355 for communicating with the
> audio codec but it seems that uart driver is heavily dependent on the
> tty driver. I don't want to use the tty later as it makes the auido
> codec driver more complex and difficult to maintain.
> 
> I just want to make following functions:
> 
> 1. uart_register_port(sturct uart_port *port);
> 2. uart_configure(int line, int baud, int parity, int flow);
> 3. uart_write(int line, char* data, int count);
> 4. uart_read(int line, char* data, int count);
> 
> 
> Can anyone please suggest me how do I do it.
> 
> I tried using the 8250 layer directly but it seems that the interrupt
> handler is also dependent on the tty layer. How do I make uart layer
> independent on the tty layer....
> 
> something similar to i2c structure of the linux...
> 
> Please help...
> 
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to