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.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/dev/pci/pci_host_generic_fdt.c | ||
---|---|---|
397 | Won't this break if there are multiple instances of this driver? |
sys/dev/pci/pci_host_generic_fdt.c | ||
---|---|---|
397 | Whoops, you're right. The list should definitely be stored in the sc. |
sys/dev/pci/pci_host_generic_fdt.c | ||
---|---|---|
434–435 | Do we have macros for these? OFW_PCI_PHYS_HI_* look like what we should use. |