]> git.baikalelectronics.ru Git - uboot.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)
commit22dafb8362de9b45744410a716f4c915d992fabc
tree00b101e293b3cff8ebf917787a4fccdea1ed5c7b
parent0fdf57c4c7d2adb5ca3b00df059a53a985a92f5a
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