Skip to content

Commit e54224d

Browse files
aurel32carlescufi
authored andcommitted
soc: stm32: h7: Generate MPU regions from DT nodes
Commit b91d21d added the possibility to define MPU regions from the device tree, however commit c276088 removed that possibility for H7 SoC, as it now uses a SoC specific definition of the MPU regions without the DT-defined regions (probably because the two PRs got developped in parallel). Fix that by adding the macro which adds the DT-defined regions to the STM32H7 specific file. Signed-off-by: Aurelien Jarno <[email protected]>
1 parent 507fa6f commit e54224d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

soc/arm/st_stm32/stm32h7/mpu_regions.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
#include <zephyr/devicetree.h>
8+
#include <zephyr/linker/devicetree_regions.h>
89
#include "../../common/cortex_m/arm_mpu_mem_cfg.h"
910

1011
static const struct arm_mpu_region mpu_regions[] = {
@@ -21,6 +22,9 @@ static const struct arm_mpu_region mpu_regions[] = {
2122
DT_REG_ADDR(DT_NODELABEL(sram3)),
2223
REGION_PPB_ATTR(REGION_256B)),
2324
#endif
25+
26+
/* DT-defined regions */
27+
LINKER_DT_REGION_MPU(ARM_MPU_REGION_INIT)
2428
};
2529

2630
const struct arm_mpu_config mpu_config = {

0 commit comments

Comments
 (0)