Julien Masson | 935b8de | 2023-12-04 11:48:58 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2023 BayLibre SAS |
| 4 | * Author: Julien Masson <jmasson@baylibre.com> |
| 5 | */ |
| 6 | |
| 7 | #include <asm/armv8/mmu.h> |
| 8 | |
| 9 | int board_init(void) |
| 10 | { |
| 11 | return 0; |
| 12 | } |
| 13 | |
| 14 | static struct mm_region mt8365_evk_mem_map[] = { |
| 15 | { |
| 16 | /* DDR */ |
| 17 | .virt = 0x40000000UL, |
| 18 | .phys = 0x40000000UL, |
| 19 | .size = 0xc0000000UL, |
| 20 | .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | PTE_BLOCK_OUTER_SHARE, |
| 21 | }, { |
| 22 | .virt = 0x00000000UL, |
| 23 | .phys = 0x00000000UL, |
| 24 | .size = 0x20000000UL, |
| 25 | .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| 26 | PTE_BLOCK_NON_SHARE | |
| 27 | PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| 28 | }, { |
| 29 | 0, |
| 30 | } |
| 31 | }; |
| 32 | |
| 33 | struct mm_region *mem_map = mt8365_evk_mem_map; |