projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e55782e
)
powerpc/chassis2: Configure and enable L2 cache for PPC clusters only
author
Shaveta Leekha
<shaveta@freescale.com>
Wed, 2 Jul 2014 06:14:54 +0000
(11:44 +0530)
committer
York 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
patch
|
blob
|
history
diff --git
a/arch/powerpc/cpu/mpc85xx/cpu_init.c
b/arch/powerpc/cpu/mpc85xx/cpu_init.c
index 78316a681593dd630cd5ef2c402b5ca9dc078ecb..c2a89c2fa60b7aa8d05443dc455257a413ae93ed 100644
(file)
--- 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;
}