Build: Add configuration for doorbell APIs
The doorbell APIs are not widely used.
This patch adds a build configuration for them to save memory by
disabling the APIs.
Corresponding changes are made as well:
1. SFN_BACKEND does not support doorbell - it does not provide the
doorbell APIs, so the config should be disabled by default.
2. The psa_wait in SFN backend can be removed as well since neither
of the API consumer, interrupt or doorbell is enabled.
Change-Id: I7c367dc0724f915ec2932b6c29db54bdfac06fa3
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/spm/ffm/backend_ipc.c b/secure_fw/spm/ffm/backend_ipc.c
index 9870d21..9507b03 100644
--- a/secure_fw/spm/ffm/backend_ipc.c
+++ b/secure_fw/spm/ffm/backend_ipc.c
@@ -107,7 +107,11 @@
{
const struct partition_load_info_t *p_pldi = p_pt->p_ldinf;
- p_pt->signals_allowed |= PSA_DOORBELL | service_setting;
+#if CONFIG_TFM_DOORBELL_API == 1
+ p_pt->signals_allowed |= PSA_DOORBELL;
+#endif /* CONFIG_TFM_DOORBELL_API == 1 */
+
+ p_pt->signals_allowed |= service_setting;
THRD_SYNC_INIT(&p_pt->waitobj);
UNI_LISI_INIT_NODE(p_pt, p_handles);