diff options
| author | Simon Glass <sjg@chromium.org> | 2014-11-14 18:18:28 -0700 | 
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2014-11-25 06:34:00 -0700 | 
| commit | e94ea6f656641e30392cf76089b65ea9aecde160 (patch) | |
| tree | e5bbc08878a4456128eb6322870ffd3c5b8abb5b /arch/x86/cpu/pci.c | |
| parent | a2f5d091ccdc6ffd8fa11c140bc5a93234ee4833 (diff) | |
x86: pci: Add handlers before and after a PCI hose scan
Some boards will want to do some setup before and after a PCI hose
is scanned.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/pci.c')
| -rw-r--r-- | arch/x86/cpu/pci.c | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/arch/x86/cpu/pci.c b/arch/x86/cpu/pci.c index e3993880dbe..f3492c3851f 100644 --- a/arch/x86/cpu/pci.c +++ b/arch/x86/cpu/pci.c @@ -33,6 +33,16 @@ int pci_early_init_hose(struct pci_controller **hosep)  	return 0;  } +__weak int board_pci_pre_scan(struct pci_controller *hose) +{ +	return 0; +} + +__weak int board_pci_post_scan(struct pci_controller *hose) +{ +	return 0; +} +  void pci_init_board(void)  {  	struct pci_controller *hose = &x86_hose; @@ -44,7 +54,9 @@ void pci_init_board(void)  	pci_setup_type1(hose);  	pci_register_hose(hose); +	board_pci_pre_scan(hose);  	hose->last_busno = pci_hose_scan(hose); +	board_pci_post_scan(hose);  }  static struct pci_controller *get_hose(void) | 
