From: Shaveta Leekha Date: Wed, 2 Jul 2014 06:14:54 +0000 (+0530) Subject: powerpc/chassis2: Configure and enable L2 cache for PPC clusters only X-Git-Tag: v2014.10-rc1~7^2~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a1399a918720337ad14053cf6185786aa33b58b2;p=oweals%2Fu-boot.git powerpc/chassis2: Configure and enable L2 cache for PPC clusters only Signed-off-by: Poonam Aggrwal Signed-off-by: Shaveta Leekha Reviewed-by: York Sun --- diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c index 78316a6815..c2a89c2fa6 100644 --- a/arch/powerpc/cpu/mpc85xx/cpu_init.c +++ b/arch/powerpc/cpu/mpc85xx/cpu_init.c @@ -520,7 +520,8 @@ int enable_cluster_l2(void) u32 idx = (cluster >> (j*8)) & TP_CLUSTER_INIT_MASK; u32 type = in_be32(&gur->tp_ityp[idx]); - if (type & TP_ITYP_AV) + if ((type & TP_ITYP_AV) && + TP_ITYP_TYPE(type) == TP_ITYP_TYPE_PPC) cluster_valid = 1; }