diff options
author | Stefan Roese <sr@denx.de> | 2008-04-22 12:20:32 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-04-25 11:44:47 +0200 |
commit | 24bfedbd0be4dcaa94861407820d6a70fea7e03b (patch) | |
tree | 09bc6b1cf4e607931147d429e010636635a125d6 /include/asm-ppc/4xx_pcie.h | |
parent | 58c5376ba67767ee684069d43e7f747a5d9ae8ed (diff) | |
download | bootable_bootloader_goldelico_gta04-24bfedbd0be4dcaa94861407820d6a70fea7e03b.zip bootable_bootloader_goldelico_gta04-24bfedbd0be4dcaa94861407820d6a70fea7e03b.tar.gz bootable_bootloader_goldelico_gta04-24bfedbd0be4dcaa94861407820d6a70fea7e03b.tar.bz2 |
ppc4xx: Pass PCIe root-complex/endpoint configuration to Linux via the fdt
The PCIe root-complex/endpoint setup as configured via the "pcie_mode"
environment variable will now get passed to the Linux kernel by setting
the device_type property of the PCIe device tree node. For normal root-
complex configuration it will keep its defaults value of "pci" and for
endpoint configuration it will get changed to "pci-endpoint".
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/asm-ppc/4xx_pcie.h')
-rw-r--r-- | include/asm-ppc/4xx_pcie.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-ppc/4xx_pcie.h b/include/asm-ppc/4xx_pcie.h index d27d2a9..5398696 100644 --- a/include/asm-ppc/4xx_pcie.h +++ b/include/asm-ppc/4xx_pcie.h @@ -8,10 +8,11 @@ * option) any later version. */ -#include <ppc4xx.h> #ifndef __4XX_PCIE_H #define __4XX_PCIE_H +#include <ppc4xx.h> + #define DCRN_SDR0_CFGADDR 0x00e #define DCRN_SDR0_CFGDATA 0x00f @@ -395,6 +396,7 @@ static inline void mdelay(int n) udelay(1000); } +#if defined(PCIE0_SDR) static inline u32 sdr_base(int port) { switch (port) { @@ -409,5 +411,6 @@ static inline u32 sdr_base(int port) #endif } } +#endif /* defined(PCIE0_SDR) */ #endif /* __4XX_PCIE_H */ |