ppc/85xx: Make L2 support more robust
PATCH 1/1 ppc/85xx: Make L2 support more robust
From: Dave Liu <[email protected]>
According the user manual, we need loop-check the L2 enable bit set.
Signed-off-by Dave Liu <[email protected]>
Signed-off-by Kumar Gala <[email protected]>
--- cpu/mpc85xx/cpu_init.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
cpu/mpc85xx/cpu_init.c +4 -1
@@ -360,8 +360,11 @@ int cpu_init_r(void)/* enable the cache */ mtspr (SPRN_L2CSR0 ,CONFIG_SYS_INIT_L2CSR0 ); -if (CONFIG_SYS_INIT_L2CSR0 &L2CSR0_L2E ) +if (CONFIG_SYS_INIT_L2CSR0 &L2CSR0_L2E ) { +while (!(mfspr (SPRN_L2CSR0 ) &L2CSR0_L2E )) + ;printf ("%d KB enabled\n" , (l2cfg0 &0x3fff ) *64 ); + }#else puts ("disabled\n" );#endif
Signature · 1 line
1.6.0.6
Kumar Gala
AppliedPATCH 1/1 ppc/85xx: Make L2 support more robust
Quoted 9 lines · Kumar Gala
From: Dave Liu <[email protected]>
According the user manual, we need loop-check the L2 enable bit set.
Signed-off-by Dave Liu <[email protected]>Signed-off-by Kumar Gala <[email protected]>---
cpu/mpc85xx/cpu_init.c| 5 ++++-1 files changed, 4 insertions(+), 1 deletions(-)
applied to 85xx.
- k