From: Bin Meng Date: Fri, 19 Dec 2014 15:19:25 +0800 Subject: [U-Boot] [PATCH 2/5] x86: Support pci bus scan in the early phase In-Reply-To: <1418973568-462-1-git-send-email-bmeng.cn@gmail.com> References: <1418973568-462-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1418973568-462-3-git-send-email-bmeng.cn@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On x86, some peripherals on pci buses need to be accessed in the early phase (eg: pci uart) with a valid pci memory/io address, thus scan the pci bus and do the corresponding resource allocation. Signed-off-by: Bin Meng --- arch/x86/cpu/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/cpu/pci.c b/arch/x86/cpu/pci.c index 404fbb6..1eee08b 100644 --- a/arch/x86/cpu/pci.c +++ b/arch/x86/cpu/pci.c @@ -29,6 +29,7 @@ int pci_early_init_hose(struct pci_controller **hosep) board_pci_setup_hose(hose); pci_setup_type1(hose); + hose->last_busno = pci_hose_scan(hose); gd->arch.hose = hose; *hosep = hose; -- 1.8.2.1