]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
serial: amba-pl011: Introduce set_uartclk_rate vendor flag
authorKartik Rajput <kkartik@nvidia.com>
Wed, 25 Feb 2026 06:59:12 +0000 (12:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2026 14:06:39 +0000 (15:06 +0100)
commit87df45b4a83f13952958e9916af1b2dd56d4cfc7
treece5c600c9c51634e63d23739d54c6cd713f89913
parent42157639ddc797053e0f16e6fe0f6b64034fe559
serial: amba-pl011: Introduce set_uartclk_rate vendor flag

The NVIDIA Tegra264 UART relies on configuring the UART clock rate
directly to program the desired baud rate.

Introduce the set_uartclk_rate vendor flag. When set, the driver
uses clk_set_rate() to program the UART clock to the desired baud
rate and clk_round_rate() to determine the maximum supported baud
rate.

Signed-off-by: Kartik Rajput <kkartik@nvidia.com>
Link: https://patch.msgid.link/20260225065915.341522-3-kkartik@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c