mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
fix(ast2700): add device mapping for coherent memory
The coherent memory should be mapped as Device nGnRnE. This fix adds the missing MMU attributes for coherent memory if enabled. Signed-off-by: Chia-Wei Wang <chiawei_wang@aspeedtech.com> Change-Id: I90b8de167c48f03392c9740f88f4b1e7b073a82d
This commit is contained in:
parent
ed2d256a68
commit
cef2e92568
1 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,12 @@ void bl31_plat_arch_setup(void)
|
||||||
BL_END - BL_CODE_END,
|
BL_END - BL_CODE_END,
|
||||||
MT_RW_DATA | MT_SECURE);
|
MT_RW_DATA | MT_SECURE);
|
||||||
|
|
||||||
|
#if USE_COHERENT_MEM
|
||||||
|
mmap_add_region(BL_COHERENT_RAM_BASE, BL_COHERENT_RAM_BASE,
|
||||||
|
BL_COHERENT_RAM_END - BL_COHERENT_RAM_BASE,
|
||||||
|
MT_DEVICE | MT_RW | MT_SECURE);
|
||||||
|
#endif
|
||||||
|
|
||||||
mmap_add_region(BL32_BASE, BL32_BASE, BL32_SIZE,
|
mmap_add_region(BL32_BASE, BL32_BASE, BL32_SIZE,
|
||||||
MT_MEMORY | MT_RW);
|
MT_MEMORY | MT_RW);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue