diff options
author | Tim Harvey <tharvey@gateworks.com> | 2021-04-17 00:53:47 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2021-05-02 13:46:54 +0300 |
commit | cecd013fdfc740612c171cb3ffa5cabd88ffa1de (patch) | |
tree | 1fd4956100533bde26c57d78a07621872b97e1e2 /drivers/pci | |
parent | 19e1b8d9b283514eb6ab8d7253f4867068007938 (diff) | |
download | u-boot-cecd013fdfc740612c171cb3ffa5cabd88ffa1de.tar.xz |
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>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci-uclass.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index f463ef3550..22a033e632 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -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; |