[PATCH v6 004/102] dm: pci: Allow delaying auto-config until after relocation

Bin Meng bmeng.cn at gmail.com
Sun Dec 8 02:08:50 CET 2019


On Sat, Dec 7, 2019 at 12:46 PM Simon Glass <sjg at chromium.org> wrote:
>
> 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 at chromium.org>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
> ---
>
> Changes in v6: None
> Changes in v5: None
> Changes in v4:
> - Change the behaviour to be a device-tree option
> - apollolake -> Apollo Lake
>
> Changes in v3: None
> Changes in v2: None
>
>  doc/device-tree-bindings/pci/x86-pci.txt | 24 ++++++++++++++++++++++++
>  drivers/pci/pci-uclass.c                 | 15 ++++++++++-----
>  include/pci.h                            |  9 ++++++++-
>  3 files changed, 42 insertions(+), 6 deletions(-)
>  create mode 100644 doc/device-tree-bindings/pci/x86-pci.txt
>

applied to u-boot-x86/next, thanks!


More information about the U-Boot mailing list