Re: [U-Boot] P2020 SPL L2 clearing

2011-02-12 Thread Kumar Gala
On Feb 11, 2011, at 8:34 AM, Fabian Cenedese wrote: 2. Why does the cache to be cleared at all? L2-SRAM is usually just used to copy in the second part of the u-boot image, so the 0s will be overwritten again anyway. This needs to be done because we enable ECC. I'm still trying to get

Re: [U-Boot] P2020 SPL L2 clearing

2011-02-11 Thread Fabian Cenedese
2. Why does the cache to be cleared at all? L2-SRAM is usually just used to copy in the second part of the u-boot image, so the 0s will be overwritten again anyway. This needs to be done because we enable ECC. I'm still trying to get my head around this. From looking at the code this doesn't

Re: [U-Boot] P2020 SPL L2 clearing

2011-02-09 Thread Fabian Cenedese
I'm creating a SPL u-boot image for our board. In the file arch/powerpc/cpu/mpc85xx/cpu_init_nand.c is the setup for the L2 cache as SRAM. In the end is a loop that fills the cache with 0 (512KB in this case). 1. Why is the access byte-wise and not dword-wise? This is only for mpc85xx and

Re: [U-Boot] P2020 SPL L2 clearing

2011-02-09 Thread Kumar Gala
On Feb 9, 2011, at 2:06 AM, Fabian Cenedese wrote: I'm creating a SPL u-boot image for our board. In the file arch/powerpc/cpu/mpc85xx/cpu_init_nand.c is the setup for the L2 cache as SRAM. In the end is a loop that fills the cache with 0 (512KB in this case). 1. Why is the access

Re: [U-Boot] P2020 SPL L2 clearing

2011-02-08 Thread Kumar Gala
On Feb 7, 2011, at 4:22 AM, Fabian Cenedese wrote: At 14:17 03.02.2011 +0100, Fabian Cenedese wrote: Hi I'm creating a SPL u-boot image for our board. In the file arch/powerpc/cpu/mpc85xx/cpu_init_nand.c is the setup for the L2 cache as SRAM. In the end is a loop that fills the cache

Re: [U-Boot] P2020 SPL L2 clearing

2011-02-07 Thread Fabian Cenedese
At 14:17 03.02.2011 +0100, Fabian Cenedese wrote: Hi I'm creating a SPL u-boot image for our board. In the file arch/powerpc/cpu/mpc85xx/cpu_init_nand.c is the setup for the L2 cache as SRAM. In the end is a loop that fills the cache with 0 (512KB in this case). /* Initialize L2 SRAM to

[U-Boot] P2020 SPL L2 clearing

2011-02-03 Thread Fabian Cenedese
Hi I'm creating a SPL u-boot image for our board. In the file arch/powerpc/cpu/mpc85xx/cpu_init_nand.c is the setup for the L2 cache as SRAM. In the end is a loop that fills the cache with 0 (512KB in this case). /* Initialize L2 SRAM to zero */ l2srbar = (char