Skip to contentSkip to conversation

4xx: Fix PCI memory mapping on CPCI405 boards

PATCH New Matthias Fuchs 2 participants 2 messages Nov 2, 2012 – Dec 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 4xx: Fix PCI memory mapping on CPCI405 boards

This patch fixes an issue with overlapping PCI regions on boards with more than 64MB RAM.

---
 include/configs/CPCI405.h   |    2 +-
 include/configs/CPCI4052.h  |    2 +-
 include/configs/CPCI405AB.h |    2 +-
 include/configs/CPCI405DT.h |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
include/configs/CPCI405.h +1 -1
index 9ecdad9..e3e5ebc 100644
@@ -174,7 +174,7 @@
 #define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
 #define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
 #define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2PCI (bd->bi_memsize) /* host use this pci address */
 
 #define CONFIG_PCI_4xx_PTM_OVERWRITE	1 /* overwrite PTMx settings by env */
 
include/configs/CPCI4052.h +1 -1
index efab119..c4fff48 100644
@@ -195,7 +195,7 @@
 #define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
 #define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
 #define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2PCI (bd->bi_memsize) /* host use this pci address */
 
 #define CONFIG_PCI_4xx_PTM_OVERWRITE	1 /* overwrite PTMx settings by env */
 
include/configs/CPCI405AB.h +1 -1
index 83e9a04..9122cbd 100644
@@ -192,7 +192,7 @@
 #define CONFIG_SYS_PCI_PTM1PCI 0x00000000	/* Host: use this pci address	*/
 #define CONFIG_SYS_PCI_PTM2LA	0xffc00000	/* point to flash		*/
 #define CONFIG_SYS_PCI_PTM2MS	0xffc00001	/* 4MB, enable			*/
-#define CONFIG_SYS_PCI_PTM2PCI 0x04000000	/* Host: use this pci address	*/
+#define CONFIG_SYS_PCI_PTM2PCI (bd->bi_memsize) /* host use this pci address */
 
 #define CONFIG_PCI_4xx_PTM_OVERWRITE	1 /* overwrite PTMx settings by env */
 
include/configs/CPCI405DT.h +1 -1
index 1944a07..f778af7 100644
@@ -196,7 +196,7 @@
 #define CONFIG_SYS_PCI_PTM1PCI 0x00000000      /* Host: use this pci address   */
 #define CONFIG_SYS_PCI_PTM2LA  0xffc00000      /* point to flash               */
 #define CONFIG_SYS_PCI_PTM2MS  0xffc00001      /* 4MB, enable                  */
-#define CONFIG_SYS_PCI_PTM2PCI 0x04000000      /* Host: use this pci address   */
+#define CONFIG_SYS_PCI_PTM2PCI (bd->bi_memsize) /* host use this pci address */
 
 #define CONFIG_PCI_4xx_PTM_OVERWRITE	1 /* overwrite PTMx settings by env */
 
Signature · 1 line
1.6.1
Applied
#1 lore raw

PATCH 1/1 4xx: Fix PCI memory mapping on CPCI405 boards

Quoted 4 lines · Matthias Fuchs

This patch fixes an issue with overlapping PCI regions on boards with more than 64MB RAM.

Applied.

Thanks,
Stefan