mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 07:01:39 +00:00
powerpc/mpc8610hpcd: set pci1_hose.config_table after fsl_setup_hose
The function fsl_setup_hose clears the variable pci1_hose. Set pci1_hose.config_table after it. Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
b813cbe916
commit
d5c784ed53
1 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2007,2009-2010 Freescale Semiconductor, Inc.
|
* Copyright 2007,2009-2011 Freescale Semiconductor, Inc.
|
||||||
*
|
*
|
||||||
* See file CREDITS for list of people who contributed to this
|
* See file CREDITS for list of people who contributed to this
|
||||||
* project.
|
* project.
|
||||||
|
@ -227,11 +227,7 @@ static struct pci_config_table pci_fsl86xxads_config_table[] = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static struct pci_controller pci1_hose = {
|
static struct pci_controller pci1_hose;
|
||||||
#ifndef CONFIG_PCI_PNP
|
|
||||||
config_table:pci_mpc86xxcts_config_table
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
#endif /* CONFIG_PCI */
|
#endif /* CONFIG_PCI */
|
||||||
|
|
||||||
void pci_init_board(void)
|
void pci_init_board(void)
|
||||||
|
@ -261,6 +257,9 @@ void pci_init_board(void)
|
||||||
" (base address %lx)\n",
|
" (base address %lx)\n",
|
||||||
pci_agent ? "Agent" : "Host",
|
pci_agent ? "Agent" : "Host",
|
||||||
pci_info.regs);
|
pci_info.regs);
|
||||||
|
#ifndef CONFIG_PCI_PNP
|
||||||
|
pci1_hose.config_table = pci_mpc86xxcts_config_table;
|
||||||
|
#endif
|
||||||
first_free_busno = fsl_pci_init_port(&pci_info,
|
first_free_busno = fsl_pci_init_port(&pci_info,
|
||||||
&pci1_hose, first_free_busno);
|
&pci1_hose, first_free_busno);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue