1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 Xilinx, Inc. (Michal Simek)
9 #include <asm/armv7_mpu.h>
11 DECLARE_GLOBAL_DATA_PTR;
13 struct mpu_region_config region_config[] = {
14 { 0x00000000, REGION_0, XN_DIS, PRIV_RW_USR_RW,
15 O_I_WB_RD_WR_ALLOC, REGION_1GB },
16 { 0x20000000, REGION_1, XN_EN, PRIV_RO_USR_RO,
17 O_I_WB_RD_WR_ALLOC, REGION_512MB },
18 { 0x40000000, REGION_2, XN_EN, PRIV_RO_USR_RO,
19 O_I_WB_RD_WR_ALLOC, REGION_1GB },
22 int arch_cpu_init(void)
24 gd->cpu_clk = CONFIG_CPU_FREQ_HZ;
26 setup_mpu_regions(region_config, sizeof(region_config) /
27 sizeof(struct mpu_region_config));
33 * Perform the low-level reset.
35 void reset_cpu(ulong addr)