PowerPC: change board specific early pci_init() into generic.
Signed-off-by: Andre Schwarz <andre.schwarz@matrix-vision.de>
This commit is contained in:
parent
e64901c01a
commit
76221a6cfa
|
@ -681,11 +681,10 @@ void board_init_r (gd_t *id, ulong dest_addr)
|
||||||
unlock_ram_in_cache(); /* it's time to unlock D-cache in e500 */
|
unlock_ram_in_cache(); /* it's time to unlock D-cache in e500 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_BAB7xx) || defined(CONFIG_CPC45)
|
#if defined(CONFIG_PCI) && defined(CONFIG_SYS_EARLY_PCI_INIT)
|
||||||
/*
|
/*
|
||||||
* Do PCI configuration on BAB7xx and CPC45 _before_ the flash
|
* Do early PCI configuration _before_ the flash gets initialised,
|
||||||
* gets initialised, because we need the ISA resp. PCI_to_LOCAL bus
|
* because PCU ressources are crucial for flash access on some boards.
|
||||||
* bridge there.
|
|
||||||
*/
|
*/
|
||||||
pci_init ();
|
pci_init ();
|
||||||
#endif
|
#endif
|
||||||
|
@ -856,7 +855,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
|
||||||
|
|
||||||
WATCHDOG_RESET ();
|
WATCHDOG_RESET ();
|
||||||
|
|
||||||
#if defined(CONFIG_PCI) && !defined(CONFIG_BAB7xx) && !defined(CONFIG_CPC45)
|
#if defined(CONFIG_PCI) && !defined(CONFIG_SYS_EARLY_PCI_INIT)
|
||||||
/*
|
/*
|
||||||
* Do pci configuration
|
* Do pci configuration
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -269,6 +269,7 @@
|
||||||
* PCI stuff
|
* PCI stuff
|
||||||
*/
|
*/
|
||||||
#define CONFIG_PCI /* include pci support */
|
#define CONFIG_PCI /* include pci support */
|
||||||
|
#define CONFIG_SYS_EARLY_PCI_INIT
|
||||||
#define CONFIG_PCI_PNP /* pci plug-and-play */
|
#define CONFIG_PCI_PNP /* pci plug-and-play */
|
||||||
#define CONFIG_PCI_HOST PCI_HOST_AUTO
|
#define CONFIG_PCI_HOST PCI_HOST_AUTO
|
||||||
#undef CONFIG_PCI_SCAN_SHOW
|
#undef CONFIG_PCI_SCAN_SHOW
|
||||||
|
|
|
@ -467,6 +467,7 @@
|
||||||
*-----------------------------------------------------------------------
|
*-----------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#define CONFIG_PCI /* include pci support */
|
#define CONFIG_PCI /* include pci support */
|
||||||
|
#define CONFIG_SYS_EARLY_PCI_INIT
|
||||||
#undef CONFIG_PCI_PNP
|
#undef CONFIG_PCI_PNP
|
||||||
#undef CONFIG_PCI_SCAN_SHOW
|
#undef CONFIG_PCI_SCAN_SHOW
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue