aboutsummaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2021-04-16 14:53:47 -0700
committerStefano Babic <sbabic@denx.de>2021-05-02 12:46:54 +0200
commitcecd013fdfc740612c171cb3ffa5cabd88ffa1de (patch)
tree1fd4956100533bde26c57d78a07621872b97e1e2 /include/pci.h
parent19e1b8d9b283514eb6ab8d7253f4867068007938 (diff)
downloadu-boot-cecd013fdfc740612c171cb3ffa5cabd88ffa1de.zip
u-boot-cecd013fdfc740612c171cb3ffa5cabd88ffa1de.tar.gz
u-boot-cecd013fdfc740612c171cb3ffa5cabd88ffa1de.tar.bz2
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 'include/pci.h')
-rw-r--r--include/pci.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pci.h b/include/pci.h
index 5f36537..2353ceb 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 */
/**