Fix some modules to export more used symbols(cherry picked from commit 5bb3134a8c21cb87b30e135ef168483f0333dabb)
bhnd(4): extend the PMU APIs to support bwn(4)The bwn(4) driver requires a number of extensions to the bhnd(4) PMUinterface to support external configuration of PLLs, LDOs, and otherparameters th
bhnd(4): extend the PMU APIs to support bwn(4)The bwn(4) driver requires a number of extensions to the bhnd(4) PMUinterface to support external configuration of PLLs, LDOs, and otherparameters that require chipset or PHY-specific workarounds.These changes add support for:- Writing raw voltage register values to PHY-specific LDO regulator registers (required by LP-PHY).- Enabling/disabling PHY-specific LDOs (required by LP-PHY)- Writing to arbitrary PMU chipctrl registers (required for common PHY PLL reset support).- Requesting chipset/PLL-specific spurious signal avoidance modes.- Querying clock frequency and latency.Additionally, rather than updating legacy PWRCTL support to conform to thenew PMU interface:- PWRCTL API is now provided by a bhnd_pwrctl_if.m interface.- Since PWRCTL is only found in older SSB-based chipsets, translation from bhnd(4) bus APIs to corresponding PWRCTL operations is now handled entirely within the siba(4) driver.- The PWRCTL-specific host bridge clock gating APIs in bhnd_bus_if.m have been lifted out into a standalone bhnd_pwrctl_hostb_if.m interface.Approved by: adrian (mentor, implicit)Sponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D12664
show more ...
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
Revert r308107Requested by: jhb
- Fix `make` in sys/modules/bhndApproved by: landonfDifferential Revision: https://reviews.freebsd.org/D7774
Migrate bhndb(4) to the new bhnd_erom API.Adds support for probing and initializing bhndb(4) bridge state usingthe bhnd_erom API, ensuring that full bridge configuration is available*prior* to ac
Migrate bhndb(4) to the new bhnd_erom API.Adds support for probing and initializing bhndb(4) bridge state usingthe bhnd_erom API, ensuring that full bridge configuration is available*prior* to actually attaching and enumerating the bhnd(4) child device,allowing us to safely allocate bus-level agent/device resources duringbhnd(4) bus enumeration.- Add a bhnd_erom_probe() method usable by bhndb(4). This is an analogue to the existing bhnd_erom_probe_static() method, and allows the bhndb bridge to discover the best available erom parser class prior to newbus probing of its children.- Add support for supplying identification hints when probing erom devices. This is required on early EXTIF-only chipsets, where chip identification registers are not available.- Migrate bhndb over to the new bhnd_erom API, using bhnd_core_info records rather than bridged bhnd(4) device_t references to determine the bridged chipsets' capability/bridge configuration.- The bhndb parent (e.g. if_bwn) is now required to supply a hardware priority table to the bridge. The default table is currently sufficient for our supported devices.- Drop the two-pass attach approach we used for compatibility with bhndb(4) in the bhnd(4) bus drivers, and instead perform bus enumeration immediately, and allocate bridged per-child bus-level resources during that enumeration.Approved by: adrian (mentor)Differential Revision: https://reviews.freebsd.org/D7768
[bhnd] Add support for querying the attachment type of the bhnd bus.This adds a BHND_BUS_GET_ATTACH_TYPE(); the primary use-case is to letchipc make a coarse-grained determination as to whether UA
[bhnd] Add support for querying the attachment type of the bhnd bus.This adds a BHND_BUS_GET_ATTACH_TYPE(); the primary use-case is to letchipc make a coarse-grained determination as to whether UART, SPI, etcdrivers ought to be attached, and on fullmac devices, whether a realCPU driver ought to be skipped for the ARM core, etc.Tested:* BCM4331 (BHND)* BCM4312 (SIBA)Submitted by: Landon Fuller <[email protected]>Differential Revision: https://reviews.freebsd.org/D6492
[bhnd] Initial bhnd(4) SPROM/NVRAM support.This adds support for the NVRAM handling and the basic SPROMhardware used on siba(4) and bcma(4) devices, including:* SPROM directly attached to the PC
[bhnd] Initial bhnd(4) SPROM/NVRAM support.This adds support for the NVRAM handling and the basic SPROMhardware used on siba(4) and bcma(4) devices, including:* SPROM directly attached to the PCI core, accessible via PCI configuration space.* SPROM attached to later ChipCommon cores.* SPROM variables vended from the parent SoC bus (e.g. via a directly-attached flash device).Additional improvements to the NVRAM/SPROM interface willbe required, but this changeset stands alone as workingcheckpoint.Submitted by: Landon Fuller <[email protected]>Reviewed by: Michael Zhilin <[email protected]> (Broadcom MIPS support)Differential Revision: https://reviews.freebsd.org/D6196
[bhnd] add missing bus file.
[bhnd] add missing bus interface SRC bits, required after the last source import.
Add modules support for the bhnd code.Submitted by: Landon Fuller <[email protected]>Obtained from: https://github.com/landonf/freebsd/compare/user/landonf/bcm4331-CURRENT