blob: 6aff9a99f4bee871e02bc8e91540f36d58c126a4 [file] [log] [blame]
Patrick Georgiac959032020-05-05 22:49:26 +02001/* SPDX-License-Identifier: GPL-2.0-only */
T Michael Turney7783c602019-10-09 07:04:54 -07002
3#include <symbols.h>
4#include <arch/mmu.h>
5#include <arch/cache.h>
6#include <soc/mmu.h>
7#include <soc/mmu_common.h>
Ravi Kumar Bokkace97bca2021-03-05 16:01:07 +05308#include <soc/symbols_common.h>
T Michael Turney7783c602019-10-09 07:04:54 -07009
10void sc7180_mmu_init(void)
11{
12 mmu_init();
13
14 mmu_config_range((void *)(4 * KiB), ((4UL * GiB) - (4 * KiB)), DEV_MEM);
15 mmu_config_range((void *)_ssram, REGION_SIZE(ssram), CACHED_RAM);
16 mmu_config_range((void *)_bsram, REGION_SIZE(bsram), CACHED_RAM);
17 mmu_config_range((void *)_dma_coherent, REGION_SIZE(dma_coherent),
18 UNCACHED_RAM);
19
20 mmu_enable();
21}