Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] ppc32: Fix configuration of PCI IO space on MPC85xx platform

For platforms that don't have PCI IO at 0 the outbound window
registers were not being properly configured.

Signed-off-by: Andrew Klossner <andrew@cesa.opbu.xerox.com>
Signed-off-by: Kumar K. Gala <kumar.gala@freescale.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Kumar Gala and committed by
Linus Torvalds
3fd07d3b 0fc084ea

+4 -4
+4 -4
arch/ppc/syslib/ppc85xx_setup.c
··· 184 184 pci->powar1 = 0x80044000 | 185 185 (__ilog2(MPC85XX_PCI1_UPPER_MEM - MPC85XX_PCI1_LOWER_MEM + 1) - 1); 186 186 187 - /* Setup outboud IO windows @ MPC85XX_PCI1_IO_BASE */ 188 - pci->potar2 = 0x00000000; 187 + /* Setup outbound IO windows @ MPC85XX_PCI1_IO_BASE */ 188 + pci->potar2 = (MPC85XX_PCI1_LOWER_IO >> 12) & 0x000fffff; 189 189 pci->potear2 = 0x00000000; 190 190 pci->powbar2 = (MPC85XX_PCI1_IO_BASE >> 12) & 0x000fffff; 191 191 /* Enable, IO R/W */ ··· 235 235 pci->powar1 = 0x80044000 | 236 236 (__ilog2(MPC85XX_PCI2_UPPER_MEM - MPC85XX_PCI2_LOWER_MEM + 1) - 1); 237 237 238 - /* Setup outboud IO windows @ MPC85XX_PCI2_IO_BASE */ 239 - pci->potar2 = 0x00000000; 238 + /* Setup outbound IO windows @ MPC85XX_PCI2_IO_BASE */ 239 + pci->potar2 = (MPC85XX_PCI2_LOWER_IO >> 12) & 0x000fffff;; 240 240 pci->potear2 = 0x00000000; 241 241 pci->powbar2 = (MPC85XX_PCI2_IO_BASE >> 12) & 0x000fffff; 242 242 /* Enable, IO R/W */