[PATCH V4 7/7] tty: serial: lpuart: add a more accurate baud rate calculation method

2017-06-12 Thread Dong Aisheng
On new LPUART versions, the oversampling ratio for the receiver can be changed from 4x (00011) to 32x (1) which could help us get a more accurate baud rate divider. The idea is to use the best OSR (over-sampling rate) possible. Note, OSR is typically hard-set to 16 in other LPUART

[PATCH V4 7/7] tty: serial: lpuart: add a more accurate baud rate calculation method

2017-06-12 Thread Dong Aisheng
On new LPUART versions, the oversampling ratio for the receiver can be changed from 4x (00011) to 32x (1) which could help us get a more accurate baud rate divider. The idea is to use the best OSR (over-sampling rate) possible. Note, OSR is typically hard-set to 16 in other LPUART