Page MenuHomeFreeBSD

gpiobus: provide a new hint, pin_list
ClosedPublic

Authored by avg on May 29 2019, 10:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 5:29 AM
Unknown Object (File)
Mon, Apr 8, 11:19 PM
Unknown Object (File)
Thu, Mar 28, 3:03 PM
Unknown Object (File)
Thu, Mar 28, 1:25 AM
Unknown Object (File)
Mar 2 2024, 2:58 PM
Unknown Object (File)
Dec 20 2023, 4:19 AM
Unknown Object (File)
Nov 19 2023, 8:26 PM
Unknown Object (File)
Oct 17 2023, 10:13 PM
Subscribers

Details

Summary

"pin_list" allows to specify child pins as a list of pin numbers.
Existing hint "pins" serves the same purpose but with a 32-bit wide bit
mask. One problem with that is that a controller can have more than 32
pins. One example is amdgpio. Also, a list of numbers is a little bit
more human friendly than a matching bit mask. As a side note, it seems
that in FDT pins are typically specified by their numbers as well.

This commit also adds accessors for instance variables (IVARs) that
define the child pins. My primary goal is to allow a child to be
configured programmatically rather than via hints (assuming that FDT is
not supported on a platform). Also, while a child should not care about
specific pin numbers that are allocated to it, it could be interested in
how many it has.

While there, I removed "flags" instance variable. It was unused.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24585
Build 23369: arc lint + arc unit