]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: pci: Allow binding of some devices before relocation
authorSimon Glass <sjg@chromium.org>
Sun, 27 Jun 2021 23:50:57 +0000 (17:50 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 15 Jul 2021 11:49:50 +0000 (19:49 +0800)
commitf5cbb5c7cd24b5e674933bb381d854c02512d2d9
tree00b101e293b3cff8ebf917787a4fccdea1ed5c7b
parente58f3a7d9b7e5961ca7e362bffd01a134ad3b831
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>
doc/device-tree-bindings/pci/x86-pci.txt
drivers/pci/pci-uclass.c
include/dt-bindings/pci/pci.h [new file with mode: 0644]
include/pci.h