Fix some modules to export more used symbols(cherry picked from commit 5bb3134a8c21cb87b30e135ef168483f0333dabb)
iicbus(4): Add support for ACPI-based children enumerationWhen iicbus is attached as child of Designware I2C controller it scans allACPI nodes for "I2C Serial Bus Connection Resource Descriptor" d
iicbus(4): Add support for ACPI-based children enumerationWhen iicbus is attached as child of Designware I2C controller it scans allACPI nodes for "I2C Serial Bus Connection Resource Descriptor" describedin section 19.6.57 of ACPI specs.If such a descriptor is found, I2C child is added to iicbus, it's I2Caddress, IRQ resource and ACPI handle are added to ivars. ExistingACPI bus-hosted child is deleted afterwards.The driver also installs so called "I2C address space handler" which isdisabled by default as nontested.Set hw.iicbus.enable_acpi_space_handler loader tunable to 1 to enable it.Reviewed by: markjMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D22901
show more ...
Add opt_platform.h for several modules that have #ifdef FDT in the source.Submitted by: Andre Albsmeier <[email protected]>
Instead of building ofw_iicbus as a separate module, just compile it in tothe iicbus module for FDT-based systems.The primary motivation for this is that host controller drivers whichdeclare DRIV
Instead of building ofw_iicbus as a separate module, just compile it in tothe iicbus module for FDT-based systems.The primary motivation for this is that host controller drivers whichdeclare DRIVER_MODULE(ofw_iicbus, thisdriver, etc, etc) now only need asingle MODULE_DEPEND(thisdriver, ofw_iicbus) for runtime linking to resolveall the symbols. With ofw_iicbus and iicbus in separate modules, driverswould need to declare a MODULE_DEPEND() on both, because symbol lookup isnon-recursive through the dependency chain. Requiring a driver to haveMODULE_DEPENDS() on both amounts to requiring the drivers to understand thekobj inheritence details of how ofw_iicbus is implemented, which seems likesomething they shouldn't have to know (and could even change some day).Also, this is somewhat analogous to how the drivers get built when compiledinto the kernel. You don't have to ask for ofw_iicbus separately, it justgets built in along with iicbus when option FDT is in effect.
Add iic_recover_bus.c, now part of iicbus. This should have been addedas part of r320463.
Arrange SRCS= as 1 file per line, alphabetical, so it's easier to maintain.Whitespace only, no functional changes.
sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
Major rework of the iicbus/smbus framework: - VIA chipset SMBus controllers added - alpm driver updated - Support for dynamic modules added - bktr FreeBSD smbus updated but not tested - cleanup