stm32mp: update MMU config before the relocation
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 5 Feb 2021 12:53:32 +0000 (13:53 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 2 Mar 2021 20:53:37 +0000 (15:53 -0500)
commit1419e5b5167e6ff35882473b81741d0815c453ea
treec1bbeee7457b47ffbe2f3ee4f802cfe8c61db362
parent35b65dd8ef3d37a088ee9169763a4d891aed618d
stm32mp: update MMU config before the relocation

Mark the top of ram, used for relocated U-Boot as a normal memory
(cacheable and executable) to avoid permission access issue when
U-Boot jumps to this relocated code.

When MMU is activated in pre-reloc stage; only the beginning of
DDR is marked executable.

This patch avoids access issue when DACR is correctly managed.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-stm32mp/dram_init.c