Commit 32e30709 authored by Alexander Potashev's avatar Alexander Potashev

RT81519. m2s: Configure MPU to allow code execution from external memory

This is required for any code execution (including the Linux kernel) in
the external RAM on SmartFusion2 (M2S).
parent 319b12a8
......@@ -59,4 +59,14 @@ void cortex_m3_soc_init(void)
M2S_SYSREG->soft_reset_cr |= (1 << 7);
M2S_SYSREG->soft_reset_cr &= ~(1 << 7);
#endif
/*
* Configure the memory protection unit (MPU) to allow full access to
* the whole 4GB address space.
*
* This is required, because in the default configuration code
* execution is not permitted at the addresses above 0xA0000000
* (including external DDR memory.)
*/
cortex_m3_mpu_full_access();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment