Marek Vasut | 23e239a | 2017-11-25 23:24:01 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Renesas RCar Gen3 memory map tables |
| 3 | * |
| 4 | * Copyright (C) 2017 Marek Vasut <marek.vasut@gmail.com> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <asm/armv8/mmu.h> |
| 11 | |
Marek Vasut | a5abacc | 2018-02-15 13:19:33 +0100 | [diff] [blame] | 12 | static struct mm_region gen3_mem_map[] = { |
Marek Vasut | 23e239a | 2017-11-25 23:24:01 +0100 | [diff] [blame] | 13 | { |
| 14 | .virt = 0x0UL, |
| 15 | .phys = 0x0UL, |
Marek Vasut | a5abacc | 2018-02-15 13:19:33 +0100 | [diff] [blame] | 16 | .size = 0x40000000UL, |
Marek Vasut | 23e239a | 2017-11-25 23:24:01 +0100 | [diff] [blame] | 17 | .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| 18 | PTE_BLOCK_NON_SHARE | |
| 19 | PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| 20 | }, { |
Marek Vasut | a5abacc | 2018-02-15 13:19:33 +0100 | [diff] [blame] | 21 | .virt = 0x40000000UL, |
| 22 | .phys = 0x40000000UL, |
| 23 | .size = 0x80000000UL, |
Marek Vasut | 04cd2e2 | 2017-10-08 20:52:52 +0200 | [diff] [blame] | 24 | .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | |
| 25 | PTE_BLOCK_INNER_SHARE |
| 26 | }, { |
Marek Vasut | a5abacc | 2018-02-15 13:19:33 +0100 | [diff] [blame] | 27 | .virt = 0xc0000000UL, |
| 28 | .phys = 0xc0000000UL, |
| 29 | .size = 0x40000000UL, |
Marek Vasut | 04cd2e2 | 2017-10-08 20:52:52 +0200 | [diff] [blame] | 30 | .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| 31 | PTE_BLOCK_NON_SHARE | |
| 32 | PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| 33 | }, { |
| 34 | /* List terminator */ |
| 35 | 0, |
| 36 | } |
| 37 | }; |
| 38 | |
Marek Vasut | a5abacc | 2018-02-15 13:19:33 +0100 | [diff] [blame] | 39 | struct mm_region *mem_map = gen3_mem_map; |