William Zhang | 9a4519c | 2022-08-22 11:19:44 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright 2022 Broadcom Ltd. |
| 4 | */ |
William Zhang | 9a4519c | 2022-08-22 11:19:44 -0700 | [diff] [blame] | 5 | #include <asm/armv8/mmu.h> |
| 6 | #include <linux/sizes.h> |
| 7 | |
| 8 | static struct mm_region bcm963158_mem_map[] = { |
| 9 | { |
| 10 | .virt = 0x00000000UL, |
| 11 | .phys = 0x00000000UL, |
| 12 | .size = 1UL * SZ_1G, |
| 13 | .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | |
| 14 | PTE_BLOCK_INNER_SHARE |
| 15 | }, |
| 16 | { |
| 17 | /* SoC peripheral */ |
| 18 | .virt = 0xff800000UL, |
| 19 | .phys = 0xff800000UL, |
| 20 | .size = 0x100000, |
| 21 | .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| 22 | PTE_BLOCK_NON_SHARE | |
| 23 | PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| 24 | }, |
| 25 | { |
| 26 | /* List terminator */ |
| 27 | 0, |
| 28 | } |
| 29 | }; |
| 30 | |
| 31 | struct mm_region *mem_map = bcm963158_mem_map; |