mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / cavium / cn81xx / mmu.c
blobc0e8efbe61420932581d1c76746a3a5ab6fe2e63
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <symbols.h>
4 #include <soc/addressmap.h>
5 #include <soc/mmu.h>
6 #include <soc/sdram.h>
7 #include <arch/mmu.h>
9 void soc_mmu_init(void)
11 const unsigned long devmem = MA_DEV | MA_S | MA_RW;
12 const unsigned long secure_mem = MA_MEM | MA_S | MA_RW;
14 mmu_init();
17 * Need to use secure mem attribute, as firmware is running in ARM TZ
18 * region.
20 mmu_config_range((void *)_ttb, REGION_SIZE(ttb), secure_mem);
21 mmu_config_range((void *)_dram, sdram_size_mb() * MiB, secure_mem);
22 /* IO space has the MSB set and is divided into 4 sub-regions:
23 * * NCB
24 * * SLI
25 * * RSL
26 * * AP
28 mmu_config_range((void *)IO_SPACE_START, IO_SPACE_SIZE, devmem);
30 mmu_enable();