Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 2 | |
| 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 Bokka | ce97bca | 2021-03-05 16:01:07 +0530 | [diff] [blame] | 8 | #include <soc/symbols_common.h> |
T Michael Turney | 7783c60 | 2019-10-09 07:04:54 -0700 | [diff] [blame] | 9 | |
| 10 | void 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 | } |