summaryrefslogtreecommitdiff
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-04-26 00:06:13 +0200
committerWolfgang Denk <wd@denx.de>2008-04-26 00:06:13 +0200
commit1d907e66fdd5d2f192a9f4fad6812ff0d0e9683a (patch)
tree59e09371286cb870fafad2c88d796062ba540447 /include/asm-ppc
parentd0d91ae3acb4f29d1a2a3a766747478ed54e2848 (diff)
parent8e048c438e20ec89b49da5f085f8f756eba6e587 (diff)
downloadu-boot-imx-1d907e66fdd5d2f192a9f4fad6812ff0d0e9683a.zip
u-boot-imx-1d907e66fdd5d2f192a9f4fad6812ff0d0e9683a.tar.gz
u-boot-imx-1d907e66fdd5d2f192a9f4fad6812ff0d0e9683a.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-ppc4xx
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/4xx_pcie.h5
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 */