]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/arm/cpu/armv7m/stm32f4/soc.c
202a1269fb0d2cc8bb93dd79731f8dde8704e0e8
3 * Kamil Lulko, <rev13@wp.pl>
5 * SPDX-License-Identifier: GPL-2.0+
10 #include <asm/armv7m.h>
11 #include <asm/arch/stm32.h>
18 int arch_cpu_init(void)
23 * Configure the memory protection unit (MPU) to allow full access to
24 * the whole 4GB address space.
26 writel(0, &V7M_MPU
->rnr
);
27 writel(0, &V7M_MPU
->rbar
);
28 writel((V7M_MPU_RASR_AP_RW_RW
| V7M_MPU_RASR_SIZE_4GB
29 | V7M_MPU_RASR_EN
), &V7M_MPU
->rasr
);
30 writel(V7M_MPU_CTRL_ENABLE
| V7M_MPU_CTRL_HFNMIENA
, &V7M_MPU
->ctrl
);