Mingyang Sun | eab7eae | 2021-09-30 13:06:52 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2021, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | {{utilities.donotedit_warning}} |
| 9 | |
| 10 | #ifndef __CONFIG_IMPL_H__ |
| 11 | #define __CONFIG_IMPL_H__ |
| 12 | |
| 13 | {% if ipc_partition_num > 0 and sfn_partition_num == 0 %} |
Ken Liu | 82e3eac | 2021-10-14 16:19:13 +0800 | [diff] [blame^] | 14 | #define {{"%-56s"|format("CONFIG_TFM_SPM_BACKEND_IPC")}} 1 |
| 15 | #define {{"%-56s"|format("CONFIG_TFM_PSA_API_SUPERVISOR_CALL")}} 1 |
| 16 | |
Mingyang Sun | eab7eae | 2021-09-30 13:06:52 +0800 | [diff] [blame] | 17 | {% elif sfn_partition_num > 0 and ipc_partition_num == 0 %} |
Ken Liu | 82e3eac | 2021-10-14 16:19:13 +0800 | [diff] [blame^] | 18 | #define CONFIG_TFM_SPM_BACKEND_SFN 1 |
Mingyang Sun | eab7eae | 2021-09-30 13:06:52 +0800 | [diff] [blame] | 19 | |
| 20 | #if TFM_LVL > 1 |
| 21 | #error "High isolation level SFN model is not supported." |
| 22 | #endif |
| 23 | |
| 24 | {% elif sfn_partition_num > 0 and ipc_partition_num > 0 %} |
| 25 | #error "IPC and SFN co-work not supported yet." |
| 26 | {% else %} |
Ken Liu | 82e3eac | 2021-10-14 16:19:13 +0800 | [diff] [blame^] | 27 | #error "Invalid partition number input, check configurations." |
Mingyang Sun | eab7eae | 2021-09-30 13:06:52 +0800 | [diff] [blame] | 28 | {% endif %} |
Ken Liu | 82e3eac | 2021-10-14 16:19:13 +0800 | [diff] [blame^] | 29 | #include "psa_interface_redirect.h" |
Mingyang Sun | eab7eae | 2021-09-30 13:06:52 +0800 | [diff] [blame] | 30 | |
| 31 | #endif /* __CONFIG_IMPL_H__ */ |