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