blob: 69dbb27e5b28ce2bbf59e445aeda9da619267cc1 [file] [log] [blame]
Xinyu Zhangcdbe3622022-10-31 14:34:25 +08001/*
2 * Copyright (c) 2022, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef __CONFIG_PARTITION_SPM_H__
9#define __CONFIG_PARTITION_SPM_H__
10
11#include "config_impl.h"
12#include "config_tfm.h"
13
14/* The maximal number of secure services that are connected or requested at the same time */
15#ifndef CONFIG_TFM_CONN_HANDLE_MAX_NUM
Jianliang Shen1c3ede02022-11-22 12:39:58 +080016#pragma message("CONFIG_TFM_CONN_HANDLE_MAX_NUM is defaulted to 8. Please check and set it explicitly.")
Xinyu Zhangcdbe3622022-10-31 14:34:25 +080017#define CONFIG_TFM_CONN_HANDLE_MAX_NUM 8
18#endif
19
20/* Enable the doorbell APIs */
21#ifndef CONFIG_TFM_DOORBELL_API
Jianliang Shen1c3ede02022-11-22 12:39:58 +080022#pragma message("CONFIG_TFM_DOORBELL_API is defaulted to 1. Please check and set it explicitly.")
Xinyu Zhangcdbe3622022-10-31 14:34:25 +080023#define CONFIG_TFM_DOORBELL_API 1
24#endif
25
26/* Disable doorbell for SFN backend */
27#if CONFIG_TFM_SPM_BACKEND_SFN == 1
Jianliang Shen1c3ede02022-11-22 12:39:58 +080028#pragma message("CONFIG_TFM_DOORBELL_API is redefined to 0.")
Xinyu Zhangcdbe3622022-10-31 14:34:25 +080029#undef CONFIG_TFM_DOORBELL_API
30#define CONFIG_TFM_DOORBELL_API 0
31#endif
32
33#endif /* __CONFIG_PARTITION_SPM_H__ */