Skip to content

Commit dd73a15

Browse files
committed
FROMLIST: rockchip: reserve memory for rk3399 ATF data
There are 3 region used by rk3399 ATF: - bl31 code, locate at 0x10000; - cortex-m0 code and data, locate at 0xff8c0000; - bl31 data, locate at 0xff8c1000 ~ 0xff8c4000; SPL_TEXT_BASE starts from 0xff8c2000, we need to reserve memory for ATF data, or else there will have memory corrupt after SPL load ATF image. More detail about cortex-M0 code in ATF: https://github.com/ARM-software/arm-trusted-firmware/commit/ 8382e17c4c6bffd15119dfce1ee4372e3c1a7890 Change-Id: I48d9ac83c9feece1e15d37fb3d116eda3eeb84a7 Signed-off-by: Kever Yang <[email protected]>
1 parent bef4a94 commit dd73a15

File tree

1 file changed

+4
-0
lines changed
  • arch/arm/include/asm/arch-rockchip

1 file changed

+4
-0
lines changed

arch/arm/include/asm/arch-rockchip/boot0.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@
1616
.space 0x4 /* space for the 'RK33' */
1717
#endif
1818
b reset
19+
20+
#if defined(CONFIG_ROCKCHIP_RK3399) && defined(CONFIG_SPL_BUILD)
21+
.space 0x4000 /* space for the ATF data */
22+
#endif

0 commit comments

Comments
 (0)