Hi Alexander,
Thank you for your reply.
May be my question is wrong. Let me rephrase it.
In our board we have MAX 485 IC to convert TTL to RS485 signal level. However that IC to be controlled for transmission ( using RTS/GPIO). ie, IC to be made in transmitting mode by toggling GPIO high and switch back to receive mode by toggling GPIO low from P2040
My solution to this case is
a) Make GPIO high in serial8250_start_tx
b) Make GPIO low in fsl8250_handle_irq when the transmitter holding register is empty.
Whether this will work ? Or any better way to achieve this functionality ?
Best Regards
Krishnaraj