]> git.dujemihanovic.xyz Git - u-boot.git/commit
powerpc: mpc8xx: Reorganise init RAM
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 4 May 2023 08:20:35 +0000 (10:20 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 4 May 2023 10:40:47 +0000 (12:40 +0200)
commitbebb8dfabc3af9eeca4283000571a7400cb88c71
tree4c413546004d4f9987ce292d63ff3846f0e02857
parentfdd243d81bcf5e7fdc8cc7b5060c0c6ed60c5c81
powerpc: mpc8xx: Reorganise init RAM

Using SMC relocation microcode patch or USB-SOF microcode patch
will disable DPRAM memory from 0x2000 to 0x2400 and from 0x2f00
to 0x3000.

At the time being, init RAM is setup to use 0x2800-0x2e00, but
the stack pointer goes beyond 0x2800 and even beyond 0x2400.

For the time being we are not going to use any microcode patch
that uses memory about 0x3000, so reorganise setup to use:
- 0x2800 - 0x2e00 for init malloc and global data and CPM buffers
- 0x3000 - 0x3c00 for init stack

For more details about CPM dual port ram, see
commit b1d62424cb ("powerpc: mpc8xx: redistribute data in CPM dpram")

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
arch/powerpc/cpu/mpc8xx/start.S
arch/powerpc/include/asm/cpm_8xx.h
include/configs/cmpc885.h
include/configs/mcr3000.h