pci_host_generic_fdt.c: Add support for mapping dts nodes to PCI devices
authorMarcin Wojtas <mw@FreeBSD.org>
Thu, 27 May 2021 08:07:19 +0000 (10:07 +0200)
committerMarcin Wojtas <mw@FreeBSD.org>
Tue, 8 Jun 2021 15:51:40 +0000 (17:51 +0200)
commitea52e815887b48f7eb10219777dc89ee0d99e8b6
treeba80c7eb7a743d65b5d505e9c86001af8b40a8ae
parentf0f7b0868a94d33ca3362702832b772bc01c65d6
pci_host_generic_fdt.c: Add support for mapping dts nodes to PCI devices

Some arm64 SoCs have nodes in their fdts that describe devices
connected to the internal PCI bus. One such SoC is Freescale LS1028A.
It expects the nodes to be mapped to devices enumerated using the standard
PCI method. Mapping is done by reading device and function ids from "reg"
property. Information is dts is used to describe MDIO/PHY connected
to a given interface.

Submitted by: Kornel Duleba <mindal@semihalf.com>
Reviewed by: andrew
Obtained from: Semihalf
Sponsored by: Alstom Group
Differential Revision: https://reviews.freebsd.org/D30180
sys/dev/pci/pci_host_generic_fdt.c
sys/dev/pci/pci_host_generic_fdt.h