blob: 723a50fec0073729eb5cfb8ddfd67bad488cdfe7 [file] [log] [blame]
Julien Masson935b8de2023-12-04 11:48:58 +01001// 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
9int board_init(void)
10{
11 return 0;
12}
13
14static 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
33struct mm_region *mem_map = mt8365_evk_mem_map;