Hi,
Has anyone implemented a 9 bit data UART driver under linux for the I.mx28. I have been reviewing the "MCIMX28RM" document and as far as I see it's not possible to read the 9bit from the UART register since the hardware just tells you the status of the parity bit.
Does anyone have any idea how I could do this. I need to know what the 9bit is since I am trying to interface the I.mx28 with a UART that uses 9bit data for UART
Thanks
Hi Desmond,
i think your thoughts should be okay. I think the tricky part is to detect the parity errors with termios. Maybe the flag PARMRK should do the trick.
Hi Stefan,
Thanks for response. I don't want to write 9bit data I need to read it. I came up with a scenario to derive the 9th bit. See below and give me your thoughts.
Hi Desmond,
in case you don't need 9 bit + parity it's possible to emulate bit 9 with parity (like here: https://viereck.ch/linux-mark-space-parity/ ).
Based on this similiar patch: https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=bb70002cb7430252c6c8e3b1...
i attached one for mxs-auart from Mainline Linux 4.5. I only compile tested this patch.
Hi Desmond
you are right i.MX28 uart hardware does not support 9 data bits.
Best regards
igor