blob: 6ef1a2bc4c7bec139c178105a72547b4d1a94583 [file] [log] [blame]
Mingyang Suneab7eae2021-09-30 13:06:52 +08001/*
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 Liu82e3eac2021-10-14 16:19:13 +080014#define {{"%-56s"|format("CONFIG_TFM_SPM_BACKEND_IPC")}} 1
Ken Liue07c3b72021-10-14 16:19:13 +080015
16#if TFM_LVL > 1
Ken Liu82e3eac2021-10-14 16:19:13 +080017#define {{"%-56s"|format("CONFIG_TFM_PSA_API_SUPERVISOR_CALL")}} 1
Ken Liue07c3b72021-10-14 16:19:13 +080018#else
19#define {{"%-56s"|format("CONFIG_TFM_PSA_API_THREAD_CALL")}} 1
20#define {{"%-56s"|format("CONFIG_TFM_SPM_THREAD_STACK_SIZE")}} 1024
21#endif
Ken Liu82e3eac2021-10-14 16:19:13 +080022
Mingyang Suneab7eae2021-09-30 13:06:52 +080023{% elif sfn_partition_num > 0 and ipc_partition_num == 0 %}
Ken Liue07c3b72021-10-14 16:19:13 +080024#define {{"%-56s"|format("CONFIG_TFM_SPM_BACKEND_SFN")}} 1
Mingyang Suneab7eae2021-09-30 13:06:52 +080025
26#if TFM_LVL > 1
27#error "High isolation level SFN model is not supported."
28#endif
29
30{% elif sfn_partition_num > 0 and ipc_partition_num > 0 %}
31#error "IPC and SFN co-work not supported yet."
32{% else %}
Ken Liu82e3eac2021-10-14 16:19:13 +080033#error "Invalid partition number input, check configurations."
Mingyang Suneab7eae2021-09-30 13:06:52 +080034{% endif %}
Ken Liu82e3eac2021-10-14 16:19:13 +080035#include "psa_interface_redirect.h"
Mingyang Suneab7eae2021-09-30 13:06:52 +080036
37#endif /* __CONFIG_IMPL_H__ */