Edison Ai | 1c266ae | 2019-03-20 11:21:21 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018-2019, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | {{utilities.donotedit_warning}} |
| 9 | |
| 10 | #ifndef __TFM_PARTITION_DEFS_INC__ |
| 11 | #define __TFM_PARTITION_DEFS_INC__ |
| 12 | |
| 13 | {% set ns = namespace(iterator_counter=0) %} |
| 14 | {% for manifest in manifests %} |
| 15 | {% if manifest.attr.conditional %} |
| 16 | #ifdef {{manifest.attr.conditional}} |
| 17 | {% endif %} |
| 18 | #define {{manifest.manifest.name}}_ID (TFM_SP_BASE + {{ns.iterator_counter}}) |
| 19 | {% set ns.found = true %} |
| 20 | {% set ns.iterator_counter = ns.iterator_counter + 1 %} |
| 21 | {% if manifest.attr.conditional %} |
| 22 | #endif /* {{manifest.attr.conditional}} */ |
| 23 | {% endif %} |
| 24 | |
| 25 | {% endfor %} |
| 26 | #define TFM_MAX_USER_PARTITIONS ({{manifests | length()}}) |
| 27 | |
| 28 | #endif /* __TFM_PARTITION_DEFS_INC__ */ |