From 2a476ed9ed163f9813639deb03cfdce46c09dd97 Mon Sep 17 00:00:00 2001 From: Rafal Jaworowski Date: Thu, 21 May 2009 11:37:56 +0000 Subject: [PATCH] Skip interleaved RAM target on MPC85xx during renitialization of the local access windows. This eliminates hangs on systems which are configured to use interleaved mode: prior to this fix we were simply cutting ourselves from access to the main memory in this case. Obtained from: Freescale, Semihalf --- sys/powerpc/mpc85xx/ocpbus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/powerpc/mpc85xx/ocpbus.c b/sys/powerpc/mpc85xx/ocpbus.c index 216ca416bda..817cf69e6b7 100644 --- a/sys/powerpc/mpc85xx/ocpbus.c +++ b/sys/powerpc/mpc85xx/ocpbus.c @@ -255,7 +255,8 @@ ocpbus_attach(device_t dev) if ((sr & 0x80000000) == 0) continue; tgt = (sr & 0x01f00000) >> 20; - if (tgt == OCP85XX_TGTIF_RAM1 || tgt == OCP85XX_TGTIF_RAM2) + if (tgt == OCP85XX_TGTIF_RAM1 || tgt == OCP85XX_TGTIF_RAM2 || + tgt == OCP85XX_TGTIF_RAM_INTL) continue; ccsr_write4(OCP85XX_LAWSR(i), sr & 0x7fffffff);