pci: pci-uclass: Add board_pci_fixup_dev for DM_PCI

Add a board_pci_fixup_dev weak function to allow PCI device fixups
during enumeration.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
Tim Harvey
2021-04-16 14:53:47 -07:00
committed by Stefano Babic
parent 19e1b8d9b2
commit cecd013fdf
2 changed files with 14 additions and 0 deletions

View File

@@ -790,6 +790,10 @@ error:
return ret;
}
__weak extern void board_pci_fixup_dev(struct udevice *bus, struct udevice *dev)
{
}
int pci_bind_bus_devices(struct udevice *bus)
{
ulong vendor, device;
@@ -895,6 +899,8 @@ int pci_bind_bus_devices(struct udevice *bus)
}
}
}
board_pci_fixup_dev(bus, dev);
}
return 0;