mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
ppc/85xx: Make L2 support more robust
According the user manual, we need loop-check the L2 enable bit set. Signed-off-by: Dave Liu <daveliu@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
613ad28c3d
commit
654ea1f318
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue