]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit61b9ea1793d1a19e54ecde0531e4ae00bf065cf1
treec1bbeee7457b47ffbe2f3ee4f802cfe8c61db362
parent1cc75a82c3442cd61f0f28e22671cf2a2ca8fca1
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