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