diff options
author | Shaveta Leekha <shaveta@freescale.com> | 2014-07-02 11:44:54 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-07-22 16:25:55 -0700 |
commit | a1399a918720337ad14053cf6185786aa33b58b2 (patch) | |
tree | 5695ae5b7899af7880e28f499888ed8307d3340f /arch/powerpc | |
parent | e55782ecccadc196a4f9d8e5e8b456e200ea9727 (diff) | |
download | u-boot-imx-a1399a918720337ad14053cf6185786aa33b58b2.zip u-boot-imx-a1399a918720337ad14053cf6185786aa33b58b2.tar.gz u-boot-imx-a1399a918720337ad14053cf6185786aa33b58b2.tar.bz2 |
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/cpu/mpc85xx/cpu_init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/cpu_init.c b/arch/powerpc/cpu/mpc85xx/cpu_init.c index 78316a6..c2a89c2 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; } |