Page MenuHomeFreeBSD

if_awg: Add support for allwinner,{tx,rx}-delay-ps bindings
ClosedPublic

Authored by kevans on Apr 8 2018, 2:13 AM.
Tags
None
Referenced Files
F117709017: D15008.diff
Thu, May 22, 1:32 AM
Unknown Object (File)
Fri, Apr 25, 1:27 PM
Unknown Object (File)
Apr 21 2025, 2:53 PM
Unknown Object (File)
Apr 21 2025, 4:23 AM
Unknown Object (File)
Apr 20 2025, 2:04 AM
Unknown Object (File)
Apr 14 2025, 10:50 AM
Unknown Object (File)
Apr 14 2025, 9:35 AM
Unknown Object (File)
Apr 14 2025, 5:05 AM
Subscribers

Details

Summary

Split out delay parsing into a separate function; we'll support both {tx,rx}-delay as well as the new versions.

While here, validate that they're within the expected range and fail to attach if they are not. Assuming that we can clamp the delay is a bad idea that might result in a non-working awg anyways, so we'll fail early to make it easier to catch.

This version also unsets the tx and rx delay registers unconditionally and then sets them if we read a non-zero delay. These delay properties should default to 0 if not specified, as declared in the binding documentation. Presumably the delays will be set via hardware configuration if they're not explicitly set in FDT.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 16047