Page MenuHomeFreeBSD

uart/pl011: Add support for computing rclk
Needs ReviewPublic

Authored by imp on Fri, Oct 11, 9:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 13, 2:17 AM
Unknown Object (File)
Sat, Oct 12, 4:39 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 59980
Build 56865: arc lint + arc unit

Event Timeline

imp requested review of this revision.Fri, Oct 11, 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.