Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Qualcomm APQ8096 memory map |
| 4 | * |
| 5 | * (C) Copyright 2017 Jorge Ramirez Ortiz <jorge.ramirez-ortiz@linaro.org> |
Jorge Ramirez-Ortiz | 9f2d1b2 | 2018-01-10 11:33:50 +0100 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <common.h> |
| 9 | #include <asm/armv8/mmu.h> |
| 10 | |
| 11 | static struct mm_region apq8096_mem_map[] = { |
| 12 | { |
| 13 | .virt = 0x0UL, /* Peripheral block */ |
| 14 | .phys = 0x0UL, /* Peripheral block */ |
| 15 | .size = 0x10000000UL, |
| 16 | .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| 17 | PTE_BLOCK_NON_SHARE | |
| 18 | PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| 19 | }, { |
| 20 | .virt = 0x80000000UL, /* DDR */ |
| 21 | .phys = 0x80000000UL, /* DDR */ |
| 22 | .size = 0xC0000000UL, |
| 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 = apq8096_mem_map; |