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
Unknown Object (File)
Jan 24 2024, 7:58 AM
Unknown Object (File)
Dec 20 2023, 12:15 AM
Unknown Object (File)
Dec 3 2023, 4:46 PM
Unknown Object (File)
Oct 10 2023, 3:05 PM
Unknown Object (File)
Sep 11 2023, 5:45 AM
Unknown Object (File)
Jul 15 2023, 10:04 PM
Unknown Object (File)
Jun 26 2023, 10:59 PM
Unknown Object (File)
Jun 20 2023, 6:50 PM
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