[PATCH] ppc32: fix PCI2 IO space mapping on CDS

Kumar Gala galak at freescale.com
Mon Jan 24 05:27:44 EST 2005

The ppc pci bus and resource fixups will automatically adjust the IO space 
mappings by (hose->io_base_virt - isa_io_base).  Since we map all of PCI 
IO space (PCI1 & PCI2) with a single mapping so it is continguious in 
virtual, physical, and PCI IO space the offset will equal 
MPC85XX_PCI1_IO_SIZE.  There for we needed to reduce the setting by 
that amount for everything to work properly on CDS.

Signed-off-by: Kumar Gala <kumar.gala at freescale.com>

diff -Nru a/arch/ppc/platforms/85xx/mpc85xx_cds_common.h b/arch/ppc/platforms/85xx/mpc85xx_cds_common.h
--- a/arch/ppc/platforms/85xx/mpc85xx_cds_common.h	2005-01-23 12:22:34 -06:00
+++ b/arch/ppc/platforms/85xx/mpc85xx_cds_common.h	2005-01-23 12:22:34 -06:00
@@ -60,8 +60,10 @@
 #define MPC85XX_PCI1_IO_SIZE         0x01000000
 /* PCI 2 memory map */
-#define MPC85XX_PCI2_LOWER_IO        0x01000000
-#define MPC85XX_PCI2_UPPER_IO        0x01ffffff
+/* Note: the standard PPC fixups will cause IO space to get bumped by
+ * hose->io_base_virt - isa_io_base => MPC85XX_PCI1_IO_SIZE */
+#define MPC85XX_PCI2_LOWER_IO        0x00000000
+#define MPC85XX_PCI2_UPPER_IO        0x00ffffff
 #define MPC85XX_PCI2_LOWER_MEM       0xa0000000
 #define MPC85XX_PCI2_UPPER_MEM       0xbfffffff

More information about the Linuxppc-embedded mailing list