From 369cc9dc0aa9c588793ca9a27c266c0f701b4042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Thu, 13 Oct 2016 13:47:13 +0000 Subject: [PATCH] fix PCI base/translation address register values --- pci/pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pci/pci.c b/pci/pci.c index f07fd30..ec94435 100644 --- a/pci/pci.c +++ b/pci/pci.c @@ -1182,7 +1182,7 @@ void init_pci(void) * initiator window 0 base / translation adress register * used for PCI memory access */ - MCF_PCI_PCIIW0BTAR = (PCI_MEMORY_OFFSET + ((PCI_MEMORY_SIZE - 1) >> 8)) + MCF_PCI_PCIIW0BTAR = ((PCI_MEMORY_OFFSET + ((PCI_MEMORY_SIZE - 1) >> 8)) & 0xffff0000) + (PCI_MEMORY_OFFSET >> 16); NOP(); @@ -1192,7 +1192,8 @@ void init_pci(void) * initiator window 1 base / translation adress register * used for PCI I/O access */ - MCF_PCI_PCIIW1BTAR = (PCI_IO_OFFSET + ((PCI_IO_SIZE - 1) >> 8)) & 0xffff0000; + MCF_PCI_PCIIW1BTAR = ((PCI_IO_OFFSET + ((PCI_IO_SIZE - 1) >> 8)) & 0xffff0000) + + + (PCI_IO_OFFSET >> 16); NOP(); /* initiator window 2 base / translation address register */ MCF_PCI_PCIIW2BTAR = 0L; /* not used */