Page MenuHomeFreeBSD

uart/pl011: Add support for computing rclk
ClosedPublic

Authored by imp on Oct 11 2024, 9:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 3, 7:41 AM
Unknown Object (File)
Fri, Dec 27, 9:56 PM
Unknown Object (File)
Wed, Dec 25, 11:14 AM
Unknown Object (File)
Tue, Dec 17, 10:10 AM
Unknown Object (File)
Tue, Dec 17, 3:22 AM
Unknown Object (File)
Dec 5 2024, 7:03 PM
Unknown Object (File)
Nov 24 2024, 3:30 AM
Unknown Object (File)
Nov 24 2024, 3:02 AM
Subscribers
None

Details

Summary

When instructed to do so, compute the rclk (baud rate generator clock)
based on the currently programmed divisor and the communicated baud
rate. We only do this once and only for consoles that tell us the
configured rate and flag we can likely safely compute rclk.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Oct 11 2024, 9:54 PM
imp created this revision.
sys/dev/uart/uart_dev_pl011.c
247

Why & ~3?

Update to use proper constants for this computation. Don't know what I was
thinking before.

This revision is now accepted and ready to land.Oct 15 2024, 8:12 AM
This revision was automatically updated to reflect the committed changes.