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