Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <platform.h> |
| 8 | #include <psci.h> |
| 9 | #include <utils_def.h> |
| 10 | #include <xlat_tables_v2.h> |
| 11 | |
| 12 | #define NS_IMAGE_OFFSET TFTF_BASE |
| 13 | #define NS_IMAGE_LIMIT (NS_IMAGE_OFFSET + (32 << TWO_MB_SHIFT)) |
| 14 | |
| 15 | static const mem_region_t juno_ram_ranges[] = { |
| 16 | {NS_IMAGE_LIMIT, 128 << TWO_MB_SHIFT}, |
| 17 | #ifdef AARCH64 |
| 18 | {JUNO_DRAM2_BASE, 1 << ONE_GB_SHIFT}, |
| 19 | #endif |
| 20 | }; |
| 21 | |
| 22 | const mem_region_t *plat_get_prot_regions(int *nelem) |
| 23 | { |
| 24 | *nelem = ARRAY_SIZE(juno_ram_ranges); |
| 25 | return juno_ram_ranges; |
| 26 | } |