Mateusz Kulikowski | 0859213 | 2016-03-31 23:12:32 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Qualcomm APQ8016 memory map |
| 3 | * |
| 4 | * (C) Copyright 2016 Mateusz Kulikowski <mateusz.kulikowski@gmail.com> |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0+ |
| 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <asm/armv8/mmu.h> |
| 11 | |
| 12 | static struct mm_region apq8016_mem_map[] = { |
| 13 | { |
York Sun | cd4b0c5 | 2016-06-24 16:46:22 -0700 | [diff] [blame^] | 14 | .virt = 0x0UL, /* Peripheral block */ |
| 15 | .phys = 0x0UL, /* Peripheral block */ |
Mateusz Kulikowski | 0859213 | 2016-03-31 23:12:32 +0200 | [diff] [blame] | 16 | .size = 0x8000000UL, |
| 17 | .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| 18 | PTE_BLOCK_NON_SHARE | |
| 19 | PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| 20 | }, { |
York Sun | cd4b0c5 | 2016-06-24 16:46:22 -0700 | [diff] [blame^] | 21 | .virt = 0x80000000UL, /* DDR */ |
| 22 | .phys = 0x80000000UL, /* DDR */ |
Mateusz Kulikowski | 0859213 | 2016-03-31 23:12:32 +0200 | [diff] [blame] | 23 | .size = 0x80000000UL, |
| 24 | .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | |
| 25 | PTE_BLOCK_INNER_SHARE |
| 26 | }, { |
| 27 | /* List terminator */ |
| 28 | 0, |
| 29 | } |
| 30 | }; |
| 31 | |
| 32 | struct mm_region *mem_map = apq8016_mem_map; |