diff options
| author | Gabor Juhos <juhosg@openwrt.org> | 2013-05-30 07:06:12 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-06-07 14:17:01 -0400 | 
| commit | 842033e6964e9e5d34aca893c1845416dd8ac2cc (patch) | |
| tree | f6d61d48c0b349a91261e49111e8588e3d042234 | |
| parent | 064d55f8bc8d7d205ed0be6abb6717e92eeb7cad (diff) | |
| download | olio-uboot-2014.01-842033e6964e9e5d34aca893c1845416dd8ac2cc.tar.xz olio-uboot-2014.01-842033e6964e9e5d34aca893c1845416dd8ac2cc.zip | |
pci: introduce CONFIG_PCI_INDIRECT_BRIDGE option
The pci_indirect.c file is always compiled when
CONFIG_PCI is defined although the indirect PCI
bridge support is not needed by every board.
Introduce a new CONFIG_PCI_INDIRECT_BRIDGE
config option and only compile indirect PCI
bridge support if this options is enabled.
Also add the new option into the configuration
files of the boards which needs that.
Compile tested for powerpc, x86, arm and nds32.
MAKEALL results:
powerpc:
  --------------------- SUMMARY ----------------------------
  Boards compiled: 641
  Boards with warnings but no errors: 2 ( ELPPC MPC8323ERDB )
  ----------------------------------------------------------
  Note: the warnings for ELPPC and MPC8323ERDB are present even
  without the actual patch.
x86:
  --------------------- SUMMARY ----------------------------
  Boards compiled: 1
  ----------------------------------------------------------
arm:
  --------------------- SUMMARY ----------------------------
  Boards compiled: 311
  ----------------------------------------------------------
nds32:
  --------------------- SUMMARY ----------------------------
  Boards compiled: 3
  ----------------------------------------------------------
Cc: Tom Rini <trini@ti.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@googlemail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
141 files changed, 145 insertions, 1 deletions
| @@ -3898,6 +3898,9 @@ Low Level (hardware related) configuration options:  		a second time.	Useful for platforms that are pre-booted  		by coreboot or similar. +- CONFIG_PCI_INDIRECT_BRIDGE: +		Enable support for indirect PCI bridges. +  - CONFIG_SYS_SRIO:  		Chip has SRIO or not diff --git a/drivers/pci/Makefile b/drivers/pci/Makefile index 1ae35d360..14999447b 100644 --- a/drivers/pci/Makefile +++ b/drivers/pci/Makefile @@ -26,7 +26,8 @@ include $(TOPDIR)/config.mk  LIB	:= $(obj)libpci.o  COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_pci_init.o -COBJS-$(CONFIG_PCI) += pci.o pci_auto.o pci_indirect.o +COBJS-$(CONFIG_PCI) += pci.o pci_auto.o +COBJS-$(CONFIG_PCI_INDIRECT_BRIDGE) += pci_indirect.o  COBJS-$(CONFIG_FTPCI100) += pci_ftpci100.o  COBJS-$(CONFIG_IXP_PCI) += pci_ixp.o  COBJS-$(CONFIG_SH4_PCI) += pci_sh4.o diff --git a/include/configs/A3000.h b/include/configs/A3000.h index b85244a89..d506a558c 100644 --- a/include/configs/A3000.h +++ b/include/configs/A3000.h @@ -96,6 +96,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef	CONFIG_PCI_PNP  #define CONFIG_PCI_SCAN_SHOW		/* print pci devices @ startup	*/ diff --git a/include/configs/APC405.h b/include/configs/APC405.h index 9a65cbced..1e392290d 100644 --- a/include/configs/APC405.h +++ b/include/configs/APC405.h @@ -218,6 +218,7 @@  #define PCI_HOST_AUTO		2	/* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support          */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_FORCE	/* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/AR405.h b/include/configs/AR405.h index 99944766d..7337f5374 100644 --- a/include/configs/AR405.h +++ b/include/configs/AR405.h @@ -157,6 +157,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_FORCE	/* select pci host function	*/  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/ASH405.h b/include/configs/ASH405.h index 09aa763c1..35c37731c 100644 --- a/include/configs/ASH405.h +++ b/include/configs/ASH405.h @@ -172,6 +172,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_HOST	/* select pci host function	*/  #undef	CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/B4860QDS.h b/include/configs/B4860QDS.h index 1c9d08e25..c15bbd856 100644 --- a/include/configs/B4860QDS.h +++ b/include/configs/B4860QDS.h @@ -620,6 +620,7 @@ unsigned long get_board_ddr_clk(void);  #endif  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_NET_MULTI  #define CONFIG_PCI_PNP			/* do pci plug-and-play */  #define CONFIG_E1000 diff --git a/include/configs/BSC9132QDS.h b/include/configs/BSC9132QDS.h index 431c68696..9d15d0eb8 100644 --- a/include/configs/BSC9132QDS.h +++ b/include/configs/BSC9132QDS.h @@ -73,6 +73,7 @@  #if defined(CONFIG_PCI)  #define CONFIG_PCIE1			/* PCIE controler 1 (slot 1) */  #define CONFIG_FSL_PCI_INIT		/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET		/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT		/* enable 64-bit PCI resources */ diff --git a/include/configs/CATcenter.h b/include/configs/CATcenter.h index 1e3a5640e..7017f8c19 100644 --- a/include/configs/CATcenter.h +++ b/include/configs/CATcenter.h @@ -327,6 +327,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_FORCE	 /* select pci host function	 */  #undef	CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/CPC45.h b/include/configs/CPC45.h index e102c365c..c7904a188 100644 --- a/include/configs/CPC45.h +++ b/include/configs/CPC45.h @@ -450,6 +450,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI			/* include pci support			*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_SYS_EARLY_PCI_INIT  #undef	CONFIG_PCI_PNP  #undef	CONFIG_PCI_SCAN_SHOW diff --git a/include/configs/CPCI2DP.h b/include/configs/CPCI2DP.h index 11cf58b14..bbd93ac50 100644 --- a/include/configs/CPCI2DP.h +++ b/include/configs/CPCI2DP.h @@ -146,6 +146,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_AUTO   /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/CPCI405.h b/include/configs/CPCI405.h index e3e5ebc53..36476e013 100644 --- a/include/configs/CPCI405.h +++ b/include/configs/CPCI405.h @@ -155,6 +155,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_AUTO   /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/CPCI4052.h b/include/configs/CPCI4052.h index c4fff486d..4c12c85c2 100644 --- a/include/configs/CPCI4052.h +++ b/include/configs/CPCI4052.h @@ -176,6 +176,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_AUTO   /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/CPCI405AB.h b/include/configs/CPCI405AB.h index 9122cbd87..96b6c0ab6 100644 --- a/include/configs/CPCI405AB.h +++ b/include/configs/CPCI405AB.h @@ -173,6 +173,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_AUTO	/* select pci host function	*/  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/CPCI405DT.h b/include/configs/CPCI405DT.h index f778af7e3..c4cc5fd73 100644 --- a/include/configs/CPCI405DT.h +++ b/include/configs/CPCI405DT.h @@ -177,6 +177,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_AUTO   /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/CPCIISER4.h b/include/configs/CPCIISER4.h index 35daed05e..78c66c76a 100644 --- a/include/configs/CPCIISER4.h +++ b/include/configs/CPCIISER4.h @@ -140,6 +140,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_AUTO	/* select pci host function	*/  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/CPU87.h b/include/configs/CPU87.h index aa5ce2958..3e9c21cc9 100644 --- a/include/configs/CPU87.h +++ b/include/configs/CPU87.h @@ -192,6 +192,7 @@  #define CONFIG_CMD_I2C  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE      #define CONFIG_CMD_PCI  #endif diff --git a/include/configs/CU824.h b/include/configs/CU824.h index a3ceed17f..6632196ad 100644 --- a/include/configs/CU824.h +++ b/include/configs/CU824.h @@ -288,6 +288,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI			/* include pci support			*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef CONFIG_PCI_PNP diff --git a/include/configs/DU440.h b/include/configs/DU440.h index bbe271303..4970ea657 100644 --- a/include/configs/DU440.h +++ b/include/configs/DU440.h @@ -357,6 +357,7 @@ int du440_phy_addr(int devnum);   * PCI stuff   */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do (not) pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup  */  #define CONFIG_SYS_PCI_TARGBASE       0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/ diff --git a/include/configs/ELPPC.h b/include/configs/ELPPC.h index 220372ccd..d10f4c18a 100644 --- a/include/configs/ELPPC.h +++ b/include/configs/ELPPC.h @@ -242,6 +242,7 @@   * PCI stuff   */  #define CONFIG_PCI                                /* include pci support */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP                            /* pci plug-and-play */  #define CONFIG_PCI_HOST         PCI_HOST_AUTO  #undef  CONFIG_PCI_SCAN_SHOW diff --git a/include/configs/G2000.h b/include/configs/G2000.h index 08ba8404b..b6769ae68 100644 --- a/include/configs/G2000.h +++ b/include/configs/G2000.h @@ -216,6 +216,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_HOST   /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/HH405.h b/include/configs/HH405.h index 444413d8d..d65377f58 100644 --- a/include/configs/HH405.h +++ b/include/configs/HH405.h @@ -231,6 +231,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_HOST   /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/HIDDEN_DRAGON.h b/include/configs/HIDDEN_DRAGON.h index a62ef6364..dbad1fd6a 100644 --- a/include/configs/HIDDEN_DRAGON.h +++ b/include/configs/HIDDEN_DRAGON.h @@ -93,6 +93,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI				/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef CONFIG_PCI_PNP diff --git a/include/configs/HWW1U1A.h b/include/configs/HWW1U1A.h index 791763aaa..2b72a3348 100644 --- a/include/configs/HWW1U1A.h +++ b/include/configs/HWW1U1A.h @@ -188,6 +188,7 @@  #define CONFIG_PCI_PNP		/* Scan PCI busses			*/  #define CONFIG_CMD_PCI		/* Enable the "pci" command		*/  #define CONFIG_FSL_PCI_INIT	/* Common FreeScale PCI initialization	*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	/* We have PCI-E reset errata		*/  #define CONFIG_SYS_PCI_64BIT	/* PCI resources are 64-bit		*/  #define CONFIG_PCI_SCAN_SHOW	/* Display PCI scan during boot		*/ diff --git a/include/configs/JSE.h b/include/configs/JSE.h index e0a0d8e46..6ce789d7f 100644 --- a/include/configs/JSE.h +++ b/include/configs/JSE.h @@ -226,6 +226,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_FORCE	/* select pci host function	*/  #undef	CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/KAREF.h b/include/configs/KAREF.h index 546e28b8f..8d5e8ff65 100644 --- a/include/configs/KAREF.h +++ b/include/configs/KAREF.h @@ -268,6 +268,7 @@   *----------------------------------------------------------------------*/  /* General PCI */  #define CONFIG_PCI			     /* include pci support	*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			     /* do pci plug-and-play	*/  #define CONFIG_PCI_SCAN_SHOW		     /* show pci devices	*/  #define CONFIG_SYS_PCI_TARGBASE      (CONFIG_SYS_PCI_MEMBASE) diff --git a/include/configs/MERGERBOX.h b/include/configs/MERGERBOX.h index 30fb6c2ff..249663951 100644 --- a/include/configs/MERGERBOX.h +++ b/include/configs/MERGERBOX.h @@ -36,6 +36,7 @@  #define CONFIG_SYS_TEXT_BASE	0xFC000000  #define CONFIG_PCI	1 +#define CONFIG_PCI_INDIRECT_BRIDGE 1  #define	CONFIG_MASK_AER_AO  #define CONFIG_DISPLAY_AER_FULL diff --git a/include/configs/METROBOX.h b/include/configs/METROBOX.h index 286f8690a..d1ef559cf 100644 --- a/include/configs/METROBOX.h +++ b/include/configs/METROBOX.h @@ -333,6 +333,7 @@   *----------------------------------------------------------------------*/  /* General PCI */  #define CONFIG_PCI			     /* include pci support	*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			     /* do pci plug-and-play	*/  #define CONFIG_PCI_SCAN_SHOW		     /* show pci devices	*/  #define CONFIG_SYS_PCI_TARGBASE      (CONFIG_SYS_PCI_MEMBASE) diff --git a/include/configs/MIP405.h b/include/configs/MIP405.h index 979495a72..0d023ab9f 100644 --- a/include/configs/MIP405.h +++ b/include/configs/MIP405.h @@ -206,6 +206,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_FORCE	/* configure as pci-host	*/  #define CONFIG_PCI_PNP			/* pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/MOUSSE.h b/include/configs/MOUSSE.h index 1391ce517..b3dbd6fae 100644 --- a/include/configs/MOUSSE.h +++ b/include/configs/MOUSSE.h @@ -330,6 +330,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI			/* include pci support			*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef CONFIG_PCI_PNP diff --git a/include/configs/MPC8260ADS.h b/include/configs/MPC8260ADS.h index c4c41c77d..c312b7781 100644 --- a/include/configs/MPC8260ADS.h +++ b/include/configs/MPC8260ADS.h @@ -195,6 +195,7 @@  /*PCI*/  #if CONFIG_ADSTYPE >= CONFIG_SYS_PQ2FADS  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP  #define CONFIG_PCI_BOOTDELAY 0  #define CONFIG_PCI_SCAN_SHOW diff --git a/include/configs/MPC8266ADS.h b/include/configs/MPC8266ADS.h index 0474140fb..c5aa58650 100644 --- a/include/configs/MPC8266ADS.h +++ b/include/configs/MPC8266ADS.h @@ -137,6 +137,7 @@  /* PCI */  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP  #define CONFIG_PCI_BOOTDELAY 0  #undef CONFIG_PCI_SCAN_SHOW diff --git a/include/configs/MPC8308RDB.h b/include/configs/MPC8308RDB.h index 95a1885ac..f10555ce0 100644 --- a/include/configs/MPC8308RDB.h +++ b/include/configs/MPC8308RDB.h @@ -402,6 +402,7 @@  #define CONFIG_SYS_SCCR_PCIEXP1CM	1  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCIE  #define CONFIG_PCI_PNP		/* do pci plug-and-play */ diff --git a/include/configs/MPC8313ERDB.h b/include/configs/MPC8313ERDB.h index c28dfe006..1d753e76b 100644 --- a/include/configs/MPC8313ERDB.h +++ b/include/configs/MPC8313ERDB.h @@ -76,6 +76,7 @@  #endif  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_FSL_ELBC 1  #define CONFIG_MISC_INIT_R diff --git a/include/configs/MPC8315ERDB.h b/include/configs/MPC8315ERDB.h index 767b9763e..ee806c440 100644 --- a/include/configs/MPC8315ERDB.h +++ b/include/configs/MPC8315ERDB.h @@ -405,6 +405,7 @@  #define CONFIG_SYS_PCIE2_IO_SIZE	0x00800000  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCIE  #define CONFIG_PCI_PNP		/* do pci plug-and-play */ diff --git a/include/configs/MPC8323ERDB.h b/include/configs/MPC8323ERDB.h index 8d5ed0f7a..ac4c25396 100644 --- a/include/configs/MPC8323ERDB.h +++ b/include/configs/MPC8323ERDB.h @@ -264,6 +264,7 @@  #define CONFIG_SYS_PCI1_IO_SIZE		0x04000000	/* 64M */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_SKIP_HOST_BRIDGE  #define CONFIG_PCI_PNP		/* do pci plug-and-play */ diff --git a/include/configs/MPC832XEMDS.h b/include/configs/MPC832XEMDS.h index f592d3a3a..7c31f4795 100644 --- a/include/configs/MPC832XEMDS.h +++ b/include/configs/MPC832XEMDS.h @@ -360,6 +360,7 @@  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP		/* do pci plug-and-play */  #define CONFIG_83XX_PCI_STREAMING diff --git a/include/configs/MPC8349EMDS.h b/include/configs/MPC8349EMDS.h index e5529c700..212089c23 100644 --- a/include/configs/MPC8349EMDS.h +++ b/include/configs/MPC8349EMDS.h @@ -666,6 +666,7 @@  /* PCI @ 0x80000000 */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_IBAT1L	(CONFIG_SYS_PCI1_MEM_BASE \  				| BATL_PP_RW \  				| BATL_MEMCOHERENCE) diff --git a/include/configs/MPC8349ITX.h b/include/configs/MPC8349ITX.h index 2c3f1f62a..1130b59a2 100644 --- a/include/configs/MPC8349ITX.h +++ b/include/configs/MPC8349ITX.h @@ -393,6 +393,7 @@ boards, we say we have two, but don't display a message if we find only one. */   * PCI   */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_MPC83XX_PCI2 diff --git a/include/configs/MPC8360EMDS.h b/include/configs/MPC8360EMDS.h index a1fbd5e4a..a71ac2bd3 100644 --- a/include/configs/MPC8360EMDS.h +++ b/include/configs/MPC8360EMDS.h @@ -458,6 +458,7 @@  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP		/* do pci plug-and-play */  #define CONFIG_83XX_PCI_STREAMING diff --git a/include/configs/MPC8360ERDK.h b/include/configs/MPC8360ERDK.h index fc0095281..fcca5424e 100644 --- a/include/configs/MPC8360ERDK.h +++ b/include/configs/MPC8360ERDK.h @@ -314,6 +314,7 @@  #define CONFIG_SYS_PCI1_IO_SIZE		0x100000 /* 1M */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP		/* do pci plug-and-play */ diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h index 82436618b..480468f2d 100644 --- a/include/configs/MPC837XEMDS.h +++ b/include/configs/MPC837XEMDS.h @@ -395,6 +395,7 @@  #define CONFIG_SYS_PCIE2_IO_SIZE	0x00800000  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #ifndef __ASSEMBLY__  extern int board_pci_host_broken(void);  #endif diff --git a/include/configs/MPC837XERDB.h b/include/configs/MPC837XERDB.h index 9ad7e3a90..d5c9d059e 100644 --- a/include/configs/MPC837XERDB.h +++ b/include/configs/MPC837XERDB.h @@ -421,6 +421,7 @@  #define CONFIG_SYS_PCIE2_IO_SIZE	0x00800000  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP		/* do pci plug-and-play */  #undef CONFIG_PCI_SCAN_SHOW	/* show pci devices on startup */ diff --git a/include/configs/MPC8536DS.h b/include/configs/MPC8536DS.h index bcd77b608..cc2b7c332 100644 --- a/include/configs/MPC8536DS.h +++ b/include/configs/MPC8536DS.h @@ -84,6 +84,7 @@  #define CONFIG_PCIE2		1	/* PCIE controler 2 (slot 2) */  #define CONFIG_PCIE3		1	/* PCIE controler 3 (ULI bridge) */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */ diff --git a/include/configs/MPC8540ADS.h b/include/configs/MPC8540ADS.h index a0fe15e86..6cb00ee66 100644 --- a/include/configs/MPC8540ADS.h +++ b/include/configs/MPC8540ADS.h @@ -52,6 +52,7 @@  #endif  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_TSEC_ENET		/* tsec ethernet support */  #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/MPC8541CDS.h b/include/configs/MPC8541CDS.h index a6bea153d..d0e6ca65b 100644 --- a/include/configs/MPC8541CDS.h +++ b/include/configs/MPC8541CDS.h @@ -40,6 +40,7 @@  #define	CONFIG_SYS_TEXT_BASE	0xfff80000  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_TSEC_ENET		/* tsec ethernet support */  #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/MPC8544DS.h b/include/configs/MPC8544DS.h index d5f3c5f56..09d0835c6 100644 --- a/include/configs/MPC8544DS.h +++ b/include/configs/MPC8544DS.h @@ -44,6 +44,7 @@  #define CONFIG_PCIE2		1	/* PCIE controler 2 (slot 2) */  #define CONFIG_PCIE3		1	/* PCIE controler 3 (ULI bridge) */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */ diff --git a/include/configs/MPC8548CDS.h b/include/configs/MPC8548CDS.h index 0e22cc7e1..d070f6adc 100644 --- a/include/configs/MPC8548CDS.h +++ b/include/configs/MPC8548CDS.h @@ -52,6 +52,7 @@  #define CONFIG_PCIE1		/* PCIE controler 1 (slot 1) */  #undef CONFIG_PCI2  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */ diff --git a/include/configs/MPC8555CDS.h b/include/configs/MPC8555CDS.h index 266cb54c9..483556b31 100644 --- a/include/configs/MPC8555CDS.h +++ b/include/configs/MPC8555CDS.h @@ -40,6 +40,7 @@  #define	CONFIG_SYS_TEXT_BASE	0xfff80000  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_TSEC_ENET		/* tsec ethernet support */  #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/MPC8560ADS.h b/include/configs/MPC8560ADS.h index 35d15f427..525e88fa1 100644 --- a/include/configs/MPC8560ADS.h +++ b/include/configs/MPC8560ADS.h @@ -49,6 +49,7 @@  #define	CONFIG_SYS_TEXT_BASE	0xfff80000  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_TSEC_ENET		/* tsec ethernet support */  #undef CONFIG_ETHER_ON_FCC             /* cpm FCC ethernet support */ diff --git a/include/configs/MPC8568MDS.h b/include/configs/MPC8568MDS.h index 5d69fb66d..f1bfdcbd2 100644 --- a/include/configs/MPC8568MDS.h +++ b/include/configs/MPC8568MDS.h @@ -42,6 +42,7 @@  #define CONFIG_PCI1		1	/* PCI controller */  #define CONFIG_PCIE1		1	/* PCIE controller */  #define CONFIG_FSL_PCI_INIT	1	/* use common fsl pci init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_TSEC_ENET		/* tsec ethernet support */ diff --git a/include/configs/MPC8569MDS.h b/include/configs/MPC8569MDS.h index acd3276e9..c54755fab 100644 --- a/include/configs/MPC8569MDS.h +++ b/include/configs/MPC8569MDS.h @@ -41,6 +41,7 @@  #define CONFIG_PCI		1	/* Disable PCI/PCIE */  #define CONFIG_PCIE1		1	/* PCIE controller */  #define CONFIG_FSL_PCI_INIT	1	/* use common fsl pci init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_QE			/* Enable QE */ diff --git a/include/configs/MPC8572DS.h b/include/configs/MPC8572DS.h index d233365b7..25303c4f6 100644 --- a/include/configs/MPC8572DS.h +++ b/include/configs/MPC8572DS.h @@ -71,6 +71,7 @@  #define CONFIG_PCIE2		1	/* PCIE controler 2 (slot 2) */  #define CONFIG_PCIE3		1	/* PCIE controler 3 (ULI bridge) */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */ diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h index c61982745..f791e7682 100644 --- a/include/configs/MPC8610HPCD.h +++ b/include/configs/MPC8610HPCD.h @@ -51,6 +51,7 @@  #define CONFIG_PCIE1		1	/* PCIe 1 connected to ULI bridge */  #define CONFIG_PCIE2		1	/* PCIe 2 connected to slot */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_FSL_LAW		1	/* Use common FSL init code */ diff --git a/include/configs/MPC8641HPCN.h b/include/configs/MPC8641HPCN.h index 264309772..4a3ca017e 100644 --- a/include/configs/MPC8641HPCN.h +++ b/include/configs/MPC8641HPCN.h @@ -510,6 +510,7 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);   * BAT2		Rapidio Memory   */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_DBAT2L	(BAT_PHYS_ADDR(CONFIG_SYS_PCIE1_MEM_PHYS_LOW, \  					       CONFIG_SYS_PCIE1_MEM_PHYS_HIGH) \  				 | BATL_PP_RW | BATL_CACHEINHIBIT \ diff --git a/include/configs/MUSENKI.h b/include/configs/MUSENKI.h index 84a167d2a..8b0415158 100644 --- a/include/configs/MUSENKI.h +++ b/include/configs/MUSENKI.h @@ -87,6 +87,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI			/* include pci support          */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef CONFIG_PCI_PNP diff --git a/include/configs/MVBLM7.h b/include/configs/MVBLM7.h index a9c00acc9..afd4c0356 100644 --- a/include/configs/MVBLM7.h +++ b/include/configs/MVBLM7.h @@ -42,6 +42,7 @@  #define CONFIG_SYS_IMMR		0xE0000000  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_SKIP_HOST_BRIDGE  #define CONFIG_HARD_I2C  #define CONFIG_TSEC_ENET diff --git a/include/configs/MVBLUE.h b/include/configs/MVBLUE.h index 52d172925..21f286e0f 100644 --- a/include/configs/MVBLUE.h +++ b/include/configs/MVBLUE.h @@ -154,6 +154,7 @@   */  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP  #define CONFIG_PCI_SCAN_SHOW diff --git a/include/configs/OCRTC.h b/include/configs/OCRTC.h index 47110aff2..4a9341765 100644 --- a/include/configs/OCRTC.h +++ b/include/configs/OCRTC.h @@ -136,6 +136,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_AUTO	/* select pci host function	*/  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/ORSG.h b/include/configs/ORSG.h index 9f754c2a8..cd1f4254a 100644 --- a/include/configs/ORSG.h +++ b/include/configs/ORSG.h @@ -134,6 +134,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_ADAPTER /* select pci adapter		*/  #undef	CONFIG_PCI_PNP			/* no pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/P1010RDB.h b/include/configs/P1010RDB.h index 437ee6ee6..518559790 100644 --- a/include/configs/P1010RDB.h +++ b/include/configs/P1010RDB.h @@ -90,6 +90,7 @@  #define CONFIG_PCIE1			/* PCIE controler 1 (slot 1) */  #define CONFIG_PCIE2			/* PCIE controler 2 (slot 2) */  #define CONFIG_FSL_PCI_INIT		/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET		/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT		/* enable 64-bit PCI resources */ diff --git a/include/configs/P1022DS.h b/include/configs/P1022DS.h index 69412e461..9c27182dc 100644 --- a/include/configs/P1022DS.h +++ b/include/configs/P1022DS.h @@ -456,6 +456,7 @@  #define CONFIG_SYS_PCIE3_IO_SIZE	0x00010000	/* 64k */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP			/* do pci plug-and-play */  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup */  #define CONFIG_E1000			/* Define e1000 pci Ethernet card */ diff --git a/include/configs/P1023RDS.h b/include/configs/P1023RDS.h index 878bd5fa5..4943d7c8f 100644 --- a/include/configs/P1023RDS.h +++ b/include/configs/P1023RDS.h @@ -73,6 +73,7 @@  #define CONFIG_PCIE2		/* PCIE controler 2 (slot 2) */  #define CONFIG_PCIE3		/* PCIE controler 3 (slot 3) */  #define CONFIG_FSL_PCI_INIT	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	/* enable 64-bit PCI resources */  #define CONFIG_FSL_LAW		/* Use common FSL init code */ diff --git a/include/configs/P1_P2_RDB.h b/include/configs/P1_P2_RDB.h index a57d9dd26..6ce4cbef9 100644 --- a/include/configs/P1_P2_RDB.h +++ b/include/configs/P1_P2_RDB.h @@ -94,6 +94,7 @@  #define CONFIG_PCIE1		1	/* PCIE controler 1 (slot 1) */  #define CONFIG_PCIE2		1	/* PCIE controler 2 (slot 2) */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #endif /* #if defined(CONFIG_PCI) */ diff --git a/include/configs/P2020COME.h b/include/configs/P2020COME.h index c75f86cb8..05a75d8a7 100644 --- a/include/configs/P2020COME.h +++ b/include/configs/P2020COME.h @@ -58,6 +58,7 @@  #define CONFIG_PCIE3		1	/* PCIE controller 3 (slot 3) */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #endif /* #if defined(CONFIG_PCI) */ diff --git a/include/configs/P2020DS.h b/include/configs/P2020DS.h index a975ee10e..229117c18 100644 --- a/include/configs/P2020DS.h +++ b/include/configs/P2020DS.h @@ -73,6 +73,7 @@  #define CONFIG_PCIE2		1	/* PCIE controler 2 (slot 2) */  #define CONFIG_PCIE3		1	/* PCIE controler 3 (ULI bridge) */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */ diff --git a/include/configs/P2041RDB.h b/include/configs/P2041RDB.h index bbc53ceaf..9cd3a7cb3 100644 --- a/include/configs/P2041RDB.h +++ b/include/configs/P2041RDB.h @@ -560,6 +560,7 @@ unsigned long get_board_sys_clk(unsigned long dummy);  #endif  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP			/* do pci plug-and-play */  #define CONFIG_E1000 diff --git a/include/configs/PCI405.h b/include/configs/PCI405.h index 119819e37..c3cacefed 100644 --- a/include/configs/PCI405.h +++ b/include/configs/PCI405.h @@ -141,6 +141,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_ADAPTER /* select pci host function	*/  #undef	CONFIG_PCI_PNP			/* no pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/PIP405.h b/include/configs/PIP405.h index 713ea12ee..3757af07a 100644 --- a/include/configs/PIP405.h +++ b/include/configs/PIP405.h @@ -199,6 +199,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_FORCE	/* configure as pci-host	*/  #define CONFIG_PCI_PNP			/* pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/PLU405.h b/include/configs/PLU405.h index 1ee0c48fa..1745eb39f 100644 --- a/include/configs/PLU405.h +++ b/include/configs/PLU405.h @@ -192,6 +192,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_FORCE  /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/PM826.h b/include/configs/PM826.h index fbcf8e5e2..faadfe43c 100644 --- a/include/configs/PM826.h +++ b/include/configs/PM826.h @@ -176,6 +176,7 @@  #define CONFIG_CMD_SNTP  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_CMD_PCI  #endif diff --git a/include/configs/PM828.h b/include/configs/PM828.h index c37aafdd4..f563fbe33 100644 --- a/include/configs/PM828.h +++ b/include/configs/PM828.h @@ -176,6 +176,7 @@  #define CONFIG_CMD_SNTP  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_CMD_PCI  #endif diff --git a/include/configs/PMC405.h b/include/configs/PMC405.h index 8235b857d..d97acecc4 100644 --- a/include/configs/PMC405.h +++ b/include/configs/PMC405.h @@ -163,6 +163,7 @@  #define PCI_HOST_AUTO		2	/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_AUTO   /* select pci host function	*/  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/PMC405DE.h b/include/configs/PMC405DE.h index 992443a8e..a42755128 100644 --- a/include/configs/PMC405DE.h +++ b/include/configs/PMC405DE.h @@ -142,6 +142,7 @@  #define PCI_HOST_AUTO		2	/* detected via arbiter enable	*/  #define CONFIG_PCI		/* include pci support			*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_AUTO  /* select pci host function	*/  #define CONFIG_PCI_PNP		/* do (not) pci plug-and-play		*/ diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h index 3837b8f13..40c18274f 100644 --- a/include/configs/PMC440.h +++ b/include/configs/PMC440.h @@ -419,6 +419,7 @@   *----------------------------------------------------------------------*/  /* General PCI */  #define CONFIG_PCI		/* include pci support          */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP		/* do (not) pci plug-and-play   */  #define CONFIG_SYS_PCI_CACHE_LINE_SIZE	0	/* to avoid problems with PNP   */  #define CONFIG_PCI_SCAN_SHOW	/* show pci devices on startup  */ diff --git a/include/configs/PN62.h b/include/configs/PN62.h index 93876b131..e2f96aa4a 100644 --- a/include/configs/PN62.h +++ b/include/configs/PN62.h @@ -122,6 +122,7 @@   * PCI stuff   */  #define CONFIG_PCI				/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP				/* we need Plug 'n Play		*/  #if 0  #define CONFIG_PCI_SCAN_SHOW			/* show PCI auto-scan at boot	*/ diff --git a/include/configs/PPChameleonEVB.h b/include/configs/PPChameleonEVB.h index 27a12b310..210bc30ca 100644 --- a/include/configs/PPChameleonEVB.h +++ b/include/configs/PPChameleonEVB.h @@ -324,6 +324,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_FORCE	 /* select pci host function	 */  #undef	CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/SIMPC8313.h b/include/configs/SIMPC8313.h index c0ffb3312..318c4c5d5 100644 --- a/include/configs/SIMPC8313.h +++ b/include/configs/SIMPC8313.h @@ -52,6 +52,7 @@  #endif  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_FSL_ELBC			1  #define CONFIG_MISC_INIT_R diff --git a/include/configs/Sandpoint8240.h b/include/configs/Sandpoint8240.h index f54fcb33e..fa456ed79 100644 --- a/include/configs/Sandpoint8240.h +++ b/include/configs/Sandpoint8240.h @@ -127,6 +127,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI				/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef CONFIG_PCI_PNP diff --git a/include/configs/Sandpoint8245.h b/include/configs/Sandpoint8245.h index 84e4891dc..cdc51a501 100644 --- a/include/configs/Sandpoint8245.h +++ b/include/configs/Sandpoint8245.h @@ -95,6 +95,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI				/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef CONFIG_PCI_PNP diff --git a/include/configs/TQM8272.h b/include/configs/TQM8272.h index be977f1d7..3b3f9e630 100644 --- a/include/configs/TQM8272.h +++ b/include/configs/TQM8272.h @@ -443,6 +443,7 @@  #define	CONFIG_PCI  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_BOARD_EARLY_INIT_F 1	/* Call board_early_init_f	*/  #define CONFIG_PCI_PNP  #define CONFIG_EEPRO100 diff --git a/include/configs/TQM834x.h b/include/configs/TQM834x.h index 07384234c..966a6e3da 100644 --- a/include/configs/TQM834x.h +++ b/include/configs/TQM834x.h @@ -442,6 +442,7 @@  /* PCI */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_IBAT3L	(CONFIG_SYS_PCI1_MEM_BASE \  				| BATL_PP_RW \  				| BATL_MEMCOHERENCE) diff --git a/include/configs/VOH405.h b/include/configs/VOH405.h index f1032f0f3..8f0c4b624 100644 --- a/include/configs/VOH405.h +++ b/include/configs/VOH405.h @@ -181,6 +181,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_HOST   /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/W7OLMC.h b/include/configs/W7OLMC.h index 462b155a3..710812fc9 100644 --- a/include/configs/W7OLMC.h +++ b/include/configs/W7OLMC.h @@ -154,6 +154,7 @@  #define CONFIG_PCI				/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST		PCI_HOST_AUTO	/* select pci host function	*/  #define CONFIG_PCI_PNP				/* pci plug-and-play		*/  /* resource configuration	*/ diff --git a/include/configs/W7OLMG.h b/include/configs/W7OLMG.h index f28f3e4f9..f88dfe4cd 100644 --- a/include/configs/W7OLMG.h +++ b/include/configs/W7OLMG.h @@ -161,6 +161,7 @@  #define PCI_HOST_AUTO		2		/* detected via arbiter enable	*/  #define CONFIG_PCI				/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST		PCI_HOST_AUTO	/* select pci host function	*/  #define CONFIG_PCI_PNP				/* pci plug-and-play		*/  /* resource configuration	*/ diff --git a/include/configs/WUH405.h b/include/configs/WUH405.h index 5def36ad0..0c78acac8 100644 --- a/include/configs/WUH405.h +++ b/include/configs/WUH405.h @@ -169,6 +169,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_HOST	/* select pci host function	*/  #undef	CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/adp-ag102.h b/include/configs/adp-ag102.h index eea44db35..a6e184961 100644 --- a/include/configs/adp-ag102.h +++ b/include/configs/adp-ag102.h @@ -143,6 +143,7 @@   */  #define CONFIG_PCI  #define CONFIG_FTPCI100 +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_FTPCI100_MEM_BASE        0xa0000000  #define CONFIG_FTPCI100_IO_SIZE         FTPCI100_BASE_IO_SIZE(256) /* 256M */  #define CONFIG_FTPCI100_MEM_SIZE        FTPCI100_MEM_SIZE(128)  /* 128M */ diff --git a/include/configs/alpr.h b/include/configs/alpr.h index 0d53e51b9..d93d5e204 100644 --- a/include/configs/alpr.h +++ b/include/configs/alpr.h @@ -287,6 +287,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup	*/  #define CONFIG_SYS_PCI_TARGBASE    0x80000000	/* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */ diff --git a/include/configs/aria.h b/include/configs/aria.h index 5318aaf99..bd8105387 100644 --- a/include/configs/aria.h +++ b/include/configs/aria.h @@ -350,6 +350,7 @@   * PCI   */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_PCI_MEM_BASE		0xA0000000  #define CONFIG_SYS_PCI_MEM_PHYS		CONFIG_SYS_PCI_MEM_BASE diff --git a/include/configs/atc.h b/include/configs/atc.h index 538a16752..57c4b33f1 100644 --- a/include/configs/atc.h +++ b/include/configs/atc.h @@ -263,6 +263,7 @@  #endif  #define	CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define	CONFIG_PCI_PNP  #define	CONFIG_SYS_PCI_MSTR_IO_BUS	0x00000000	/* PCI base   */ diff --git a/include/configs/bamboo.h b/include/configs/bamboo.h index 506a558f1..d36984df2 100644 --- a/include/configs/bamboo.h +++ b/include/configs/bamboo.h @@ -293,6 +293,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef  CONFIG_PCI_PNP			/* do (not) pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */  #define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/ diff --git a/include/configs/bubinga.h b/include/configs/bubinga.h index da67ae3b5..35a473a42 100644 --- a/include/configs/bubinga.h +++ b/include/configs/bubinga.h @@ -153,6 +153,7 @@  #define PCI_HOST_AUTO   2               /* detected via arbiter enable  */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_FORCE  /* select pci host function     */  #define CONFIG_PCI_PNP			/* do pci plug-and-play         */  					/* resource configuration       */ diff --git a/include/configs/canyonlands.h b/include/configs/canyonlands.h index acb127c1d..92106d762 100644 --- a/include/configs/canyonlands.h +++ b/include/configs/canyonlands.h @@ -496,6 +496,7 @@   *----------------------------------------------------------------------*/  /* General PCI */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup  */  #define CONFIG_PCI_CONFIG_HOST_BRIDGE diff --git a/include/configs/corenet_ds.h b/include/configs/corenet_ds.h index 2e2d43967..66c7b4f95 100644 --- a/include/configs/corenet_ds.h +++ b/include/configs/corenet_ds.h @@ -564,6 +564,7 @@  #endif  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP			/* do pci plug-and-play */  #define CONFIG_E1000 diff --git a/include/configs/csb272.h b/include/configs/csb272.h index f21fa648b..eec087c0d 100644 --- a/include/configs/csb272.h +++ b/include/configs/csb272.h @@ -204,6 +204,7 @@   *   */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define PCI_HOST_ADAPTER	0	/* configure ar pci adapter     */  #define PCI_HOST_FORCE		1	/* configure as pci host        */  #define PCI_HOST_AUTO		2	/* detected via arbiter enable  */ diff --git a/include/configs/csb472.h b/include/configs/csb472.h index aed5fa6a4..f6a456c18 100644 --- a/include/configs/csb472.h +++ b/include/configs/csb472.h @@ -203,6 +203,7 @@   *   */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define PCI_HOST_ADAPTER	0	/* configure ar pci adapter     */  #define PCI_HOST_FORCE		1	/* configure as pci host        */  #define PCI_HOST_AUTO		2	/* detected via arbiter enable  */ diff --git a/include/configs/debris.h b/include/configs/debris.h index 32aa4e506..c40fbd9f8 100644 --- a/include/configs/debris.h +++ b/include/configs/debris.h @@ -172,6 +172,7 @@   *-----------------------------------------------------------------------   */  #define CONFIG_PCI				/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP  #define CONFIG_EEPRO100 diff --git a/include/configs/eXalion.h b/include/configs/eXalion.h index 3238ac732..a6a0f8bb5 100644 --- a/include/configs/eXalion.h +++ b/include/configs/eXalion.h @@ -180,6 +180,7 @@   * PCI stuff   */  #define CONFIG_PCI		1	/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #undef	CONFIG_PCI_PNP diff --git a/include/configs/ebony.h b/include/configs/ebony.h index d6b655122..b05ba08af 100644 --- a/include/configs/ebony.h +++ b/include/configs/ebony.h @@ -177,6 +177,7 @@   */  /* General PCI */  #define CONFIG_PCI			            /* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			        /* do pci plug-and-play         */  #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */  #define CONFIG_SYS_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */ diff --git a/include/configs/ep82xxm.h b/include/configs/ep82xxm.h index 8d78921f6..7393f289a 100644 --- a/include/configs/ep82xxm.h +++ b/include/configs/ep82xxm.h @@ -254,6 +254,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */  #define CONFIG_PCI_BOOTDELAY	0 diff --git a/include/configs/gdppc440etx.h b/include/configs/gdppc440etx.h index 9efbb8e34..7b8bac48e 100644 --- a/include/configs/gdppc440etx.h +++ b/include/configs/gdppc440etx.h @@ -178,6 +178,7 @@  /* General PCI */  #define CONFIG_PCI				/* include pci support        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef  CONFIG_PCI_PNP				/* do (not) pci plug-and-play */  #define CONFIG_PCI_SCAN_SHOW			/* show pci devices on startup*/  #define CONFIG_SYS_PCI_TARGBASE		0x80000000	/* PCIaddr mapped to \ diff --git a/include/configs/icon.h b/include/configs/icon.h index 2fac0efe1..c2da4cec9 100644 --- a/include/configs/icon.h +++ b/include/configs/icon.h @@ -234,6 +234,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup	*/  #define CONFIG_PCI_CONFIG_HOST_BRIDGE diff --git a/include/configs/intip.h b/include/configs/intip.h index 33364a843..ed96b1b3c 100644 --- a/include/configs/intip.h +++ b/include/configs/intip.h @@ -316,6 +316,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup  */  #define CONFIG_PCI_CONFIG_HOST_BRIDGE diff --git a/include/configs/katmai.h b/include/configs/katmai.h index 3ed8dc7f3..c6f712c93 100644 --- a/include/configs/katmai.h +++ b/include/configs/katmai.h @@ -238,6 +238,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP		1	/* do pci plug-and-play		*/  #define CONFIG_PCI_SCAN_SHOW	1	/* show pci devices on startup	*/  #define CONFIG_PCI_CONFIG_HOST_BRIDGE diff --git a/include/configs/kilauea.h b/include/configs/kilauea.h index d505a41de..aec4a584e 100644 --- a/include/configs/kilauea.h +++ b/include/configs/kilauea.h @@ -483,6 +483,7 @@   * PCI stuff   *----------------------------------------------------------------------*/  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP		1	/* do pci plug-and-play		*/  #define CONFIG_PCI_SCAN_SHOW	1	/* show pci devices on startup	*/  #define CONFIG_PCI_CONFIG_HOST_BRIDGE diff --git a/include/configs/korat.h b/include/configs/korat.h index b919aec35..d7c1f8508 100644 --- a/include/configs/korat.h +++ b/include/configs/korat.h @@ -355,6 +355,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  #define CONFIG_SYS_PCI_CACHE_LINE_SIZE	0	/* to avoid problems with PNP	*/  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup	*/ diff --git a/include/configs/kvme080.h b/include/configs/kvme080.h index e49dc2877..87a5056af 100644 --- a/include/configs/kvme080.h +++ b/include/configs/kvme080.h @@ -169,6 +169,7 @@  #define CONFIG_SYS_NS16550_CLK		14745600  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI_PNP  #define CONFIG_EEPRO100 diff --git a/include/configs/linkstation.h b/include/configs/linkstation.h index eec79619c..20f0a18f8 100644 --- a/include/configs/linkstation.h +++ b/include/configs/linkstation.h @@ -185,6 +185,7 @@   * PCI stuff   */  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  /* Verified: CONFIG_PCI_PNP doesn't work */  #undef CONFIG_PCI_PNP  #define CONFIG_PCI_SCAN_SHOW diff --git a/include/configs/luan.h b/include/configs/luan.h index 3b4761bd0..f0e568af8 100644 --- a/include/configs/luan.h +++ b/include/configs/luan.h @@ -178,6 +178,7 @@  /* General PCI */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do (not) pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */ diff --git a/include/configs/makalu.h b/include/configs/makalu.h index 6c1b13665..f71f28bb8 100644 --- a/include/configs/makalu.h +++ b/include/configs/makalu.h @@ -276,6 +276,7 @@   * PCI stuff   *----------------------------------------------------------------------*/  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP		1	/* do pci plug-and-play		*/  #define CONFIG_PCI_SCAN_SHOW	1	/* show pci devices on startup	*/  #define CONFIG_PCI_CONFIG_HOST_BRIDGE diff --git a/include/configs/mpc5121ads.h b/include/configs/mpc5121ads.h index 64ce52dee..6f003aa03 100644 --- a/include/configs/mpc5121ads.h +++ b/include/configs/mpc5121ads.h @@ -336,6 +336,7 @@   * PCI   */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  /*   * General PCI diff --git a/include/configs/mpc8308_p1m.h b/include/configs/mpc8308_p1m.h index aa681f062..3c7a85e35 100644 --- a/include/configs/mpc8308_p1m.h +++ b/include/configs/mpc8308_p1m.h @@ -353,6 +353,7 @@  #define CONFIG_SYS_SCCR_PCIEXP1CM	1  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCIE  #define CONFIG_PCI_PNP		/* do pci plug-and-play */ diff --git a/include/configs/ocotea.h b/include/configs/ocotea.h index d0fe9dadf..3e64c7405 100644 --- a/include/configs/ocotea.h +++ b/include/configs/ocotea.h @@ -197,6 +197,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup	*/  #define CONFIG_SYS_PCI_TARGBASE    0x80000000	/* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */ diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb_pc.h index 7ed634b70..2fa537291 100644 --- a/include/configs/p1_p2_rdb_pc.h +++ b/include/configs/p1_p2_rdb_pc.h @@ -217,6 +217,7 @@  #define CONFIG_PCIE1	/* PCIE controler 1 (slot 1) */  #define CONFIG_PCIE2	/* PCIE controler 2 (slot 2) */  #define CONFIG_FSL_PCI_INIT	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_FSL_PCIE_RESET	/* need PCIe reset errata */  #define CONFIG_SYS_PCI_64BIT	/* enable 64-bit PCI resources */ diff --git a/include/configs/p3p440.h b/include/configs/p3p440.h index d7b1ca203..a19de079b 100644 --- a/include/configs/p3p440.h +++ b/include/configs/p3p440.h @@ -241,6 +241,7 @@   *----------------------------------------------------------------------*/  /* General PCI */  #define CONFIG_PCI			            /* include pci support	        */ +#define	CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			        /* do pci plug-and-play         */  #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */  #define CONFIG_SYS_PCI_TARGBASE    0x80000000  /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */ diff --git a/include/configs/pcs440ep.h b/include/configs/pcs440ep.h index 351ff5a22..189761905 100644 --- a/include/configs/pcs440ep.h +++ b/include/configs/pcs440ep.h @@ -317,6 +317,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef  CONFIG_PCI_PNP			/* do (not) pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */  #define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/ diff --git a/include/configs/ppmc7xx.h b/include/configs/ppmc7xx.h index 5cd660927..233d87d5e 100644 --- a/include/configs/ppmc7xx.h +++ b/include/configs/ppmc7xx.h @@ -118,6 +118,7 @@   */  #define	CONFIG_PCI +#define	CONFIG_PCI_INDIRECT_BRIDGE  #define	CONFIG_PCI_PNP  #undef	CONFIG_PCI_SCAN_SHOW diff --git a/include/configs/sbc405.h b/include/configs/sbc405.h index 5abcda3c3..6e53bc2ee 100644 --- a/include/configs/sbc405.h +++ b/include/configs/sbc405.h @@ -183,6 +183,7 @@  #define PCI_HOST_AUTO		2	/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_FORCE	/* select pci host function	*/  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/sbc8349.h b/include/configs/sbc8349.h index 478d0d8f9..fdc1b95e2 100644 --- a/include/configs/sbc8349.h +++ b/include/configs/sbc8349.h @@ -573,6 +573,7 @@  /* PCI @ 0x80000000 */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_IBAT1L	(CONFIG_SYS_PCI1_MEM_BASE \  				| BATL_PP_RW \  				| BATL_MEMCOHERENCE) diff --git a/include/configs/sbc8548.h b/include/configs/sbc8548.h index 2209ddf82..148ade356 100644 --- a/include/configs/sbc8548.h +++ b/include/configs/sbc8548.h @@ -33,6 +33,7 @@   * Top level Makefile configuration choices   */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_PCI1  #endif diff --git a/include/configs/sbc8641d.h b/include/configs/sbc8641d.h index 9040ec609..0e2d17deb 100644 --- a/include/configs/sbc8641d.h +++ b/include/configs/sbc8641d.h @@ -64,6 +64,7 @@  #define CONFIG_PCIE1		1	/* PCIE controler 1 (slot 1) */  #define CONFIG_PCIE2		1	/* PCIE controler 2 (slot 2) */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_FSL_LAW		1	/* Use common FSL init code */  #define CONFIG_TSEC_ENET		/* tsec ethernet support */ diff --git a/include/configs/sc3.h b/include/configs/sc3.h index fb74608bb..9dec21de6 100644 --- a/include/configs/sc3.h +++ b/include/configs/sc3.h @@ -269,6 +269,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_FORCE	/* select pci host function	*/  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/sequoia.h b/include/configs/sequoia.h index dd5d7cd26..11fce53c0 100644 --- a/include/configs/sequoia.h +++ b/include/configs/sequoia.h @@ -363,6 +363,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  #define CONFIG_SYS_PCI_CACHE_LINE_SIZE	0	/* to avoid problems with PNP	*/  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup	*/ diff --git a/include/configs/socrates.h b/include/configs/socrates.h index 25f15f2c3..7a0b48193 100644 --- a/include/configs/socrates.h +++ b/include/configs/socrates.h @@ -48,6 +48,7 @@  #define	CONFIG_SYS_TEXT_BASE	0xfff80000  #define CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_TSEC_ENET		/* tsec ethernet support	*/ diff --git a/include/configs/stxssa.h b/include/configs/stxssa.h index c1a90a704..96d7128d0 100644 --- a/include/configs/stxssa.h +++ b/include/configs/stxssa.h @@ -46,6 +46,7 @@  #define	CONFIG_SYS_TEXT_BASE	0xFFF80000  #define CONFIG_PCI			/* PCI ethernet support	*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_TSEC_ENET		/* tsec ethernet support*/  #undef CONFIG_ETHER_ON_FCC		/* cpm FCC ethernet support */  #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/t3corp.h b/include/configs/t3corp.h index 2a731a637..ff2189c2f 100644 --- a/include/configs/t3corp.h +++ b/include/configs/t3corp.h @@ -376,6 +376,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup  */  #define CONFIG_PCI_CONFIG_HOST_BRIDGE diff --git a/include/configs/t4qds.h b/include/configs/t4qds.h index fa1dcc352..aa90249f0 100644 --- a/include/configs/t4qds.h +++ b/include/configs/t4qds.h @@ -657,6 +657,7 @@ unsigned long get_board_ddr_clk(void);  #endif  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_NET_MULTI  #define CONFIG_PCI_PNP			/* do pci plug-and-play */  #define CONFIG_E1000 diff --git a/include/configs/taihu.h b/include/configs/taihu.h index a3738b7b1..a43c3da4a 100644 --- a/include/configs/taihu.h +++ b/include/configs/taihu.h @@ -171,6 +171,7 @@ unsigned char spi_read(void);  #define PCI_HOST_AUTO    2		/* detected via arbiter enable */  #define CONFIG_PCI			/* include pci support	       */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST	PCI_HOST_FORCE  /* select pci host function    */  #define CONFIG_PCI_PNP			/* do pci plug-and-play        */  					/* resource configuration      */ diff --git a/include/configs/taishan.h b/include/configs/taishan.h index 3046081c5..c9f1a9fa2 100644 --- a/include/configs/taishan.h +++ b/include/configs/taishan.h @@ -192,6 +192,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  #define CONFIG_EEPRO100       1		/* include PCI EEPRO100		*/  #define CONFIG_PCI_SCAN_SHOW		/* show pci devices on startup	*/ diff --git a/include/configs/utx8245.h b/include/configs/utx8245.h index 66568c8d0..60d1503bc 100644 --- a/include/configs/utx8245.h +++ b/include/configs/utx8245.h @@ -139,6 +139,7 @@ protect on ${u-boot_startaddr} ${u-boot_endaddr}"   *-----------------------------------------------------------------------   */  #define CONFIG_PCI				/* include pci support		*/ +#define	CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #undef CONFIG_PCI_PNP  #define CONFIG_PCI_SCAN_SHOW  #define CONFIG_EEPRO100 diff --git a/include/configs/ve8313.h b/include/configs/ve8313.h index d3b837918..7b1130a48 100644 --- a/include/configs/ve8313.h +++ b/include/configs/ve8313.h @@ -43,6 +43,7 @@  #endif  #define CONFIG_PCI		1 +#define CONFIG_PCI_INDIRECT_BRIDGE 1  #define CONFIG_FSL_ELBC		1  #define CONFIG_BOARD_EARLY_INIT_F	1 diff --git a/include/configs/vme8349.h b/include/configs/vme8349.h index 61e02e607..f97de5490 100644 --- a/include/configs/vme8349.h +++ b/include/configs/vme8349.h @@ -489,6 +489,7 @@  /* PCI @ 0x80000000 */  #ifdef CONFIG_PCI +#define CONFIG_PCI_INDIRECT_BRIDGE  #define CONFIG_SYS_IBAT1L	(CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_RW | \  				 BATL_MEMCOHERENCE)  #define CONFIG_SYS_IBAT1U	(CONFIG_SYS_PCI1_MEM_BASE | BATU_BL_256M | \ diff --git a/include/configs/walnut.h b/include/configs/walnut.h index d10f74843..219f276a4 100644 --- a/include/configs/walnut.h +++ b/include/configs/walnut.h @@ -112,6 +112,7 @@  #define PCI_HOST_AUTO	2		/* detected via arbiter enable	*/  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_HOST PCI_HOST_FORCE	/* select pci host function	*/  #define CONFIG_PCI_PNP			/* do pci plug-and-play		*/  					/* resource configuration	*/ diff --git a/include/configs/xpedite1000.h b/include/configs/xpedite1000.h index 506d646fe..1f48cc577 100644 --- a/include/configs/xpedite1000.h +++ b/include/configs/xpedite1000.h @@ -167,6 +167,7 @@ extern void out32(unsigned int, unsigned long);   */  /* General PCI */  #define CONFIG_PCI				/* include pci support */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP				/* do pci plug-and-play */  #define CONFIG_PCI_SCAN_SHOW			/* show pci devices on startup */  #define CONFIG_SYS_PCI_TARGBASE	0x80000000	/* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE */ diff --git a/include/configs/xpedite517x.h b/include/configs/xpedite517x.h index 1851a00c1..f28f443fe 100644 --- a/include/configs/xpedite517x.h +++ b/include/configs/xpedite517x.h @@ -49,6 +49,7 @@  #define CONFIG_PCIE1		1	/* PCIE controler 1 */  #define CONFIG_PCIE2		1	/* PCIE controler 2 */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_FSL_LAW		1	/* Use common FSL init code */ diff --git a/include/configs/xpedite520x.h b/include/configs/xpedite520x.h index ff99481b2..3034a3c9a 100644 --- a/include/configs/xpedite520x.h +++ b/include/configs/xpedite520x.h @@ -48,6 +48,7 @@  #define CONFIG_PCI_SCAN_SHOW	1	/* show pci devices on startup */  #define CONFIG_PCI1		1	/* PCI controller 1 */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_FSL_LAW		1	/* Use common FSL init code */ diff --git a/include/configs/xpedite537x.h b/include/configs/xpedite537x.h index 46f1c903f..43359a2ee 100644 --- a/include/configs/xpedite537x.h +++ b/include/configs/xpedite537x.h @@ -49,6 +49,7 @@  #define CONFIG_PCIE1		1	/* PCIE controler 1 */  #define CONFIG_PCIE2		1	/* PCIE controler 2 */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_FSL_LAW		1	/* Use common FSL init code */ diff --git a/include/configs/xpedite550x.h b/include/configs/xpedite550x.h index 2acf6c80a..a17108535 100644 --- a/include/configs/xpedite550x.h +++ b/include/configs/xpedite550x.h @@ -48,6 +48,7 @@  #define CONFIG_PCI_SCAN_SHOW	1	/* show pci devices on startup */  #define CONFIG_PCIE1		1	/* PCIE controler 1 (PEX8112 or XMC) */  #define CONFIG_FSL_PCI_INIT	1	/* Use common FSL init code */ +#define CONFIG_PCI_INDIRECT_BRIDGE 1	/* indirect PCI bridge support */  #define CONFIG_SYS_PCI_64BIT	1	/* enable 64-bit PCI resources */  #define CONFIG_FSL_PCIE_RESET	1	/* need PCIe reset errata */  #define CONFIG_FSL_LAW		1	/* Use common FSL init code */ diff --git a/include/configs/yosemite.h b/include/configs/yosemite.h index 0cbef6f85..cde0df1a0 100644 --- a/include/configs/yosemite.h +++ b/include/configs/yosemite.h @@ -222,6 +222,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support	        */ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #undef  CONFIG_PCI_PNP			/* do (not) pci plug-and-play   */  #define CONFIG_PCI_SCAN_SHOW            /* show pci devices on startup  */  #define CONFIG_SYS_PCI_TARGBASE        0x80000000 /* PCIaddr mapped to CONFIG_SYS_PCI_MEMBASE*/ diff --git a/include/configs/yucca.h b/include/configs/yucca.h index fb684b5e1..3282d378d 100644 --- a/include/configs/yucca.h +++ b/include/configs/yucca.h @@ -199,6 +199,7 @@   */  /* General PCI */  #define CONFIG_PCI			/* include pci support		*/ +#define CONFIG_PCI_INDIRECT_BRIDGE	/* indirect PCI bridge support */  #define CONFIG_PCI_PNP		1	/* do pci plug-and-play		*/  #define CONFIG_PCI_SCAN_SHOW	1	/* show pci devices on startup	*/  #define CONFIG_PCI_CONFIG_HOST_BRIDGE diff --git a/include/pci.h b/include/pci.h index 15f583f06..f9c514825 100644 --- a/include/pci.h +++ b/include/pci.h @@ -569,7 +569,9 @@ extern __inline__ void pci_set_ops(struct pci_controller *hose,  	hose->write_dword = write_dword;  } +#ifdef CONFIG_PCI_INDIRECT_BRIDGE  extern void pci_setup_indirect(struct pci_controller* hose, u32 cfg_addr, u32 cfg_data); +#endif  extern phys_addr_t pci_hose_bus_to_phys(struct pci_controller* hose,  					pci_addr_t addr, unsigned long flags); |