lib: utils/serial: Round UART8250 baud rate divisor to nearest integer
authorJakub Luzny <jakub.luzny@codasip.com>
Fri, 21 Jan 2022 15:06:14 +0000 (16:06 +0100)
committerAnup Patel <anup@brainfault.org>
Fri, 4 Feb 2022 05:46:29 +0000 (11:16 +0530)
commitce4c0188d96b2c20c2e08d24646a5e517fe15a4b
treeb657f4238d17392180be0c1410eb94c312fd8182
parent6ad8917b7e27e5e80fb9268492b9111b17ed2024
lib: utils/serial: Round UART8250 baud rate divisor to nearest integer

Previously, it was rounded down and that gives suboptimal results when
non-standard clock sources or baud rates are used.

Signed-off-by: Jakub Luzny <jakub.luzny@codasip.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/utils/serial/uart8250.c