aboutsummaryrefslogtreecommitdiff
path: root/include/pci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-06-27 17:50:57 -0600
committerBin Meng <bmeng.cn@gmail.com>2021-07-15 19:49:50 +0800
commitf5cbb5c7cd24b5e674933bb381d854c02512d2d9 (patch)
tree00b101e293b3cff8ebf917787a4fccdea1ed5c7b /include/pci.h
parente58f3a7d9b7e5961ca7e362bffd01a134ad3b831 (diff)
downloadu-boot-f5cbb5c7cd24b5e674933bb381d854c02512d2d9.zip
u-boot-f5cbb5c7cd24b5e674933bb381d854c02512d2d9.tar.gz
u-boot-f5cbb5c7cd24b5e674933bb381d854c02512d2d9.tar.bz2
x86: pci: Allow binding of some devices before relocation
At present only bridge devices are bound before relocation, to save space in pre-relocation memory. In some cases we do actually want to bind a device, e.g. because it provides the console UART. Add a devicetree binding to support this. Use the PCI_VENDEV() macro to encode the cell value. This is present in U-Boot but not used, so move it to the binding header-file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/pci.h')
-rw-r--r--include/pci.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/pci.h b/include/pci.h
index 9a8ba03..258c8f8 100644
--- a/include/pci.h
+++ b/include/pci.h
@@ -578,7 +578,6 @@ typedef int pci_dev_t;
#define PCI_MASK_BUS(bdf) ((bdf) & 0xffff)
#define PCI_ADD_BUS(bus, devfn) (((bus) << 16) | (devfn))
#define PCI_BDF(b, d, f) ((b) << 16 | PCI_DEVFN(d, f))
-#define PCI_VENDEV(v, d) (((v) << 16) | (d))
#define PCI_ANY_ID (~0)
/* Convert from Linux format to U-Boot format */