Manivannan Sadhasivam | 97775d2 | 2018-06-14 23:38:31 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
Amit Singh Tomar | d996f35 | 2020-04-19 19:28:26 +0530 | [diff] [blame] | 3 | * Memory map for Actions Semi Owl series SoCs. |
Manivannan Sadhasivam | 97775d2 | 2018-06-14 23:38:31 +0530 | [diff] [blame] | 4 | * |
| 5 | * Copyright (C) 2015 Actions Semi Co., Ltd. |
| 6 | * Copyright (C) 2018 Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> |
| 7 | */ |
| 8 | |
| 9 | #include <common.h> |
| 10 | #include <asm/armv8/mmu.h> |
| 11 | |
Amit Singh Tomar | d996f35 | 2020-04-19 19:28:26 +0530 | [diff] [blame] | 12 | static struct mm_region owl_mem_map[] = { |
Manivannan Sadhasivam | 97775d2 | 2018-06-14 23:38:31 +0530 | [diff] [blame] | 13 | { |
| 14 | .virt = 0x0UL, /* DDR */ |
| 15 | .phys = 0x0UL, /* DDR */ |
| 16 | .size = 0x80000000UL, |
| 17 | .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | |
| 18 | PTE_BLOCK_INNER_SHARE |
| 19 | }, { |
| 20 | .virt = 0xE0000000UL, /* Peripheral block */ |
| 21 | .phys = 0xE0000000UL, /* Peripheral block */ |
| 22 | .size = 0x08000000UL, |
| 23 | .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | |
| 24 | PTE_BLOCK_NON_SHARE | |
| 25 | PTE_BLOCK_PXN | PTE_BLOCK_UXN |
| 26 | }, { |
| 27 | /* List terminator */ |
| 28 | 0, |
| 29 | } |
| 30 | }; |
| 31 | |
Amit Singh Tomar | d996f35 | 2020-04-19 19:28:26 +0530 | [diff] [blame] | 32 | struct mm_region *mem_map = owl_mem_map; |