summaryrefslogtreecommitdiffstats
path: root/board/prodrive/p3mx/sdram_init.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-01-18 11:54:52 +0100
committerStefan Roese <sr@denx.de>2007-01-18 11:54:52 +0100
commit0057d758e3e874cbe7f24745d0cce8c1cb6c207e (patch)
tree1c1b9ce7876b761f0d7e006b0f57aeb2571a50fe /board/prodrive/p3mx/sdram_init.c
parent34167a36c29ee946b727465db5c014746a08e978 (diff)
downloadblackbird-obmc-uboot-0057d758e3e874cbe7f24745d0cce8c1cb6c207e.tar.gz
blackbird-obmc-uboot-0057d758e3e874cbe7f24745d0cce8c1cb6c207e.zip
[PATCH] Update Prodrive P3Mx support
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/prodrive/p3mx/sdram_init.c')
-rw-r--r--board/prodrive/p3mx/sdram_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/prodrive/p3mx/sdram_init.c b/board/prodrive/p3mx/sdram_init.c
index 176252efee..0464860424 100644
--- a/board/prodrive/p3mx/sdram_init.c
+++ b/board/prodrive/p3mx/sdram_init.c
@@ -65,7 +65,7 @@ int mvDmaTransfer (int, ulong, ulong, ulong, ulong);
int memory_map_bank (unsigned int bankNo,
unsigned int bankBase, unsigned int bankLength)
{
-#ifdef MAP_PCI
+#if defined (MAP_PCI) && defined (CONFIG_PCI)
PCI_HOST host;
#endif
@@ -80,7 +80,7 @@ int memory_map_bank (unsigned int bankNo,
memoryMapBank (bankNo, bankBase, bankLength);
-#ifdef MAP_PCI
+#if defined (MAP_PCI) && defined (CONFIG_PCI)
for (host = PCI_HOST0; host <= PCI_HOST1; host++) {
const int features =
PREFETCH_ENABLE |
OpenPOWER on IntegriCloud