]> git.ipfire.org Git - thirdparty/grub.git/commit
term/ns8250: Move base clock definition to a header
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 23 Dec 2022 01:47:55 +0000 (12:47 +1100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 19 Jan 2023 16:39:03 +0000 (17:39 +0100)
commitee48f6c1ba7b86f1de125e2074b5a68b137eda3a
tree7b0cadc3491775100ee2d9bec9fb135b808852c6
parent9fb22d0478712f1c194d09d0a2ad488f5ac0c5ad
term/ns8250: Move base clock definition to a header

And while at it, unify it as clock frequency in Hz, to match the value in
grub_serial_config struct and do the division by 16 in one common place.

This will simplify adding SPCR support.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/term/ns8250.c
include/grub/ns8250.h