mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
powerpc/85xx: Removed clearing of L2-as-SRAM
Removed clearing of L2 cache as SRAM as it is not necessary without ECC. This also speeds up the booting process. Signed-off-by: Fabian Cenedese <cenedese@indel.ch> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
32c8cfb23c
commit
c1c087b753
1 changed files with 0 additions and 7 deletions
|
@ -42,8 +42,6 @@ void cpu_init_f(void)
|
|||
|
||||
#if defined(CONFIG_SYS_RAMBOOT) && defined(CONFIG_SYS_INIT_L2_ADDR)
|
||||
ccsr_l2cache_t *l2cache = (void *)CONFIG_SYS_MPC85xx_L2_ADDR;
|
||||
char *l2srbar;
|
||||
int i;
|
||||
|
||||
out_be32(&l2cache->l2srbar0, CONFIG_SYS_INIT_L2_ADDR);
|
||||
|
||||
|
@ -54,10 +52,5 @@ void cpu_init_f(void)
|
|||
/* set L2E=1 & L2SRAM=001 */
|
||||
out_be32(&l2cache->l2ctl,
|
||||
(MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2SRAM_ENTIRE));
|
||||
|
||||
/* Initialize L2 SRAM to zero */
|
||||
l2srbar = (char *)CONFIG_SYS_INIT_L2_ADDR;
|
||||
for (i = 0; i < CONFIG_SYS_L2_SIZE; i++)
|
||||
l2srbar[i] = 0;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue