From cecd013fdfc740612c171cb3ffa5cabd88ffa1de Mon Sep 17 00:00:00 2001 From: Tim Harvey Date: Fri, 16 Apr 2021 14:53:47 -0700 Subject: 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 --- include/pci.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/pci.h') diff --git a/include/pci.h b/include/pci.h index 5f36537b725..2353cebb2a3 100644 --- a/include/pci.h +++ b/include/pci.h @@ -1690,6 +1690,14 @@ int sandbox_pci_get_emul(const struct udevice *bus, pci_dev_t find_devfn, */ int sandbox_pci_get_client(struct udevice *emul, struct udevice **devp); +/** + * board_pci_fixup_dev() - Board callback for PCI device fixups + * + * @bus: PCI bus + * @dev: PCI device + */ +extern void board_pci_fixup_dev(struct udevice *bus, struct udevice *dev); + #endif /* CONFIG_DM_PCI */ /** -- cgit v1.2.3