aboutsummaryrefslogtreecommitdiff
path: root/include/linux/iio/timer/stm32-timer-trigger.h
diff options
context:
space:
mode:
authorDong Aisheng <[email protected]>2017-06-13 10:55:54 +0800
committerGreg Kroah-Hartman <[email protected]>2017-06-29 17:12:34 +0200
commita6d7514b14a6ea2a3868bdcb2fca7b2410738595 (patch)
tree3918fd8bdc99cec55f3e144fc66584a853bbd5ad /include/linux/iio/timer/stm32-timer-trigger.h
parent97d6f353dafa42281dc70a67006c9e40d395796a (diff)
tty: serial: lpuart: add a more accurate baud rate calculation method
On new LPUART versions, the oversampling ratio for the receiver can be changed from 4x (00011) to 32x (11111) 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 instantiations. Loop to find the best OSR value possible, one that generates minimum baud diff iterate through the rest of the supported values of OSR. Cc: Greg Kroah-Hartman <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: Stefan Agner <[email protected]> Cc: Mingkai Hu <[email protected]> Cc: Yangbo Lu <[email protected]> Acked-by: Fugang Duan <[email protected]> Signed-off-by: Dong Aisheng <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/iio/timer/stm32-timer-trigger.h')
0 files changed, 0 insertions, 0 deletions