Skip to content
Commit 368ab68b authored by Yu Tu's avatar Yu Tu Committed by Greg Kroah-Hartman
Browse files

tty: serial: meson: Use DIV_ROUND_CLOSEST to calculate baud rates



Due to chip process differences, chip designers recommend using baud
rates as close to and larger as possible in order to reduce clock
errors.

Signed-off-by: default avatarYu Tu <yu.tu@amlogic.com>
Reviewed-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/20220407081355.13602-2-yu.tu@amlogic.com
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19401e97
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment