]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/chassis2: Configure and enable L2 cache for PPC clusters only
authorShaveta Leekha <shaveta@freescale.com>
Wed, 2 Jul 2014 06:14:54 +0000 (11:44 +0530)
committerYork Sun <yorksun@freescale.com>
Tue, 22 Jul 2014 23:25:55 +0000 (16:25 -0700)
Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/powerpc/cpu/mpc85xx/cpu_init.c

index 78316a681593dd630cd5ef2c402b5ca9dc078ecb..c2a89c2fa60b7aa8d05443dc455257a413ae93ed 100644 (file)
@@ -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;
                }