1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2018 Xilinx, Inc. (Michal Simek)
9 #include <asm/armv7_mpu.h>
10 #include <asm/global_data.h>
12 DECLARE_GLOBAL_DATA_PTR;
14 struct mpu_region_config region_config[] = {
15 { 0x00000000, REGION_0, XN_EN, PRIV_RW_USR_RW,
16 SHARED_WRITE_BUFFERED, REGION_4GB },
17 { 0x00000000, REGION_1, XN_DIS, PRIV_RW_USR_RW,
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, ARRAY_SIZE(region_config));
31 * Perform the low-level reset.
33 void reset_cpu(ulong addr)