Commit a1399a918720337ad14053cf6185786aa33b58b2

Authored by Shaveta Leekha
Committed by York Sun
1 parent e55782eccc

powerpc/chassis2: Configure and enable L2 cache for PPC clusters only

Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com>
Signed-off-by: Shaveta Leekha <shaveta@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>

Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff

arch/powerpc/cpu/mpc85xx/cpu_init.c
... ... @@ -520,7 +520,8 @@
520 520 u32 idx = (cluster >> (j*8)) & TP_CLUSTER_INIT_MASK;
521 521 u32 type = in_be32(&gur->tp_ityp[idx]);
522 522  
523   - if (type & TP_ITYP_AV)
  523 + if ((type & TP_ITYP_AV) &&
  524 + TP_ITYP_TYPE(type) == TP_ITYP_TYPE_PPC)
524 525 cluster_valid = 1;
525 526 }
526 527