Page MenuHomeFreeBSD

Extend simple_mfd driver to expose a syscon interface
ClosedPublic

Authored by ganbold on Jun 15 2019, 9:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 10, 3:27 PM
Unknown Object (File)
Sun, Feb 9, 2:19 AM
Unknown Object (File)
Jan 8 2025, 1:25 AM
Unknown Object (File)
Dec 27 2024, 12:21 AM
Unknown Object (File)
Dec 27 2024, 12:21 AM
Unknown Object (File)
Nov 30 2024, 11:49 PM
Unknown Object (File)
Nov 25 2024, 8:35 PM
Unknown Object (File)
Nov 24 2024, 7:57 PM
Subscribers

Details

Reviewers
manu
Summary

Extend simple_mfd driver to expose a syscon interface if
that node is also compatible with syscon. For instance,
Rockchip RK3399's GRF (General Register Files) is compatible
with simple-mfd as well as syscon and has devices like
usb2-phy, emmc-phy and pcie-phy etc. under it.

Diff Detail

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

Event Timeline

sys/dev/fdt/simple_mfd.c
40

you need sys/mutex.h too otherwise it doesn't compile

48

#include <dev/fdt/simple_mfd.h>

155

The rid variable isn't needed

Updated.
Used #include <dev/fdt/simple_mfd.h>
It compiles and working fine without sys/mutex.h (for instance sys/dev/extres/syscon/* files doesn't use it)
rid var is needed for bus_alloc_resource_any()

Updated.
Added sys/mutex.h

This revision is now accepted and ready to land.Jul 2 2019, 8:42 AM