]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: pci: Allow delaying auto-config until after relocation
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:41:37 +0000 (21:41 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 00:52:29 +0000 (08:52 +0800)
commit2206ac248a550a4e796cd246ce57300fe7995d91
treeba6cafc679517bc39897da03342deca45cb91071
parentb14c53398683952723540f82027fb0cbfba4f7de
dm: pci: Allow delaying auto-config until after relocation

At present PCI auto-configuration happens in U-Boot both before and after
relocation. This is a waste of time and may mess up static addresses used
in board_init_f(). Adjust the code to supporting doing auto-configuration
once, after relocation, under control of a device-tree property.

This is needed for Apollo Lake for debugging the silicon-init code. Once
the UART is moved to a different MMIO address the debug UART does not work
and any debug output in Apollo Lake's arch_fsp_init_r() causes a hang.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
doc/device-tree-bindings/pci/x86-pci.txt [new file with mode: 0644]
drivers/pci/pci-uclass.c
include/pci.h