Merge branch 'master' of /home/stefan/git/u-boot/u-boot
[oweals/u-boot.git] / include / asm-ppc / 4xx_pcie.h
index d27d2a965ce7da89ef1fa39d9eebb92d830207fd..a7cf1e8f5ee3f1266d9030bc193ab67010d117a9 100644 (file)
@@ -8,10 +8,12 @@
  * option) any later version.
  */
 
-#include <ppc4xx.h>
 #ifndef __4XX_PCIE_H
 #define __4XX_PCIE_H
 
+#include <ppc4xx.h>
+#include <pci.h>
+
 #define DCRN_SDR0_CFGADDR      0x00e
 #define DCRN_SDR0_CFGDATA      0x00f
 
@@ -395,6 +397,7 @@ static inline void mdelay(int n)
                udelay(1000);
 }
 
+#if defined(PCIE0_SDR)
 static inline u32 sdr_base(int port)
 {
        switch (port) {
@@ -409,5 +412,6 @@ static inline u32 sdr_base(int port)
 #endif
        }
 }
+#endif /* defined(PCIE0_SDR) */
 
 #endif /* __4XX_PCIE_H */