Ravi Kumar Bokka | 0c9eb31 | 2021-03-31 08:04:13 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 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> |
| 8 | #include <soc/symbols_common.h> |
| 9 | |
| 10 | void sc7280_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 | } |