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