Skip to content
Snippets Groups Projects
Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Bin Meng's avatar
    8f9052fd
    pci: Make pci apis usable before relocation · 8f9052fd
    Bin Meng authored
    
    Introduce a gd->hose to save the pci hose in the early phase so that
    apis in drivers/pci/pci.c can be used before relocation. Architecture
    codes need assign a valid gd->hose in the early phase.
    
    Some variables are declared as static so change them to be either
    stack variable or global data member so that they can be used before
    relocation, except the 'indent' used by CONFIG_PCI_SCAN_SHOW which
    just affects some print format.
    
    Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>
    8f9052fd
    History
    pci: Make pci apis usable before relocation
    Bin Meng authored
    
    Introduce a gd->hose to save the pci hose in the early phase so that
    apis in drivers/pci/pci.c can be used before relocation. Architecture
    codes need assign a valid gd->hose in the early phase.
    
    Some variables are declared as static so change them to be either
    stack variable or global data member so that they can be used before
    relocation, except the 'indent' used by CONFIG_PCI_SCAN_SHOW which
    just affects some print format.
    
    Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
    Acked-by: default avatarSimon Glass <sjg@chromium.org>