[PATCH] c2k: fix list of enabled address space

Remi Machet rmachet at slac.stanford.edu
Fri Jul 25 01:53:39 EST 2008


The Marvell chip SRAM was disabled and some reserved bit set by mistake. 
This bug was found thanks to Martyn Welch.

Signed-off-by: Remi Machet <rmachet at slac.stanford.edu>
---
 arch/powerpc/boot/cuboot-c2k.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/boot/cuboot-c2k.c b/arch/powerpc/boot/cuboot-c2k.c
index e435949..cf993ea 100644
--- a/arch/powerpc/boot/cuboot-c2k.c
+++ b/arch/powerpc/boot/cuboot-c2k.c
@@ -56,7 +56,7 @@ static void c2k_bridge_setup(u32 mem_size)
 		fatal("Error: Missing marvell,mv64360 device tree node\n\r");
 
 	enables = in_le32((u32 *)(bridge_base + MV64x60_CPU_BAR_ENABLE));
-	enables |= 0x007ffe00; /* Disable all cpu->pci windows */
+	enables |= 0x0007fe00; /* Disable all cpu->pci windows */
 	out_le32((u32 *)(bridge_base + MV64x60_CPU_BAR_ENABLE), enables);
 
 	/* Get the cpu -> pci i/o & mem mappings from the device tree */





More information about the Linuxppc-dev mailing list