aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2017-03-20 09:05:38 +0000
committerGreg Kroah-Hartman <[email protected]>2017-03-31 15:26:19 +0000
commita6040bc610554c66088fda3608ae5d6307c548e4 (patch)
treedc48ee9e2a785b6cec21708314feaccd7d060fc9 /net/unix/garbage.c
parentLinux 4.11-rc4 (diff)
downloadkernel-a6040bc610554c66088fda3608ae5d6307c548e4.tar.gz
kernel-a6040bc610554c66088fda3608ae5d6307c548e4.zip
serial: mxs-auart: Fix baudrate calculation
The reference manual for the i.MX28 recommends to calculate the divisor as divisor = (UARTCLK * 32) / baud rate, rounded to the nearest integer , so let's do this. For a typical setup of UARTCLK = 24 MHz and baud rate = 115200 this changes the divisor from 6666 to 6667 and so the actual baud rate improves from 115211.521 Bd (error ≅ 0.01 %) to 115194.240 Bd (error ≅ 0.005 %). Signed-off-by: Uwe Kleine-König <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions