SPM: Add idle Partition for single core topology

This patch adds an idle Partition. When all other Partitions are
waiting for signals, this Partition will be scheduled and it simply
waits for interrupts.

Note: Multi-core topology has already the idle thread.

Change-Id: I862eaccb33f4f119fc75a75cd25dc0ddc7869554
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
diff --git a/secure_fw/partitions/idle_partition/idle_partition.c b/secure_fw/partitions/idle_partition/idle_partition.c
new file mode 100644
index 0000000..e2725b4
--- /dev/null
+++ b/secure_fw/partitions/idle_partition/idle_partition.c
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2021, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#include "cmsis.h"
+#include "fih.h"
+
+void tfm_idle_thread(void)
+{
+    while (1) {
+        __WFI();
+    }
+
+#ifdef TFM_FIH_PROFILE_ON
+    fih_delay();
+
+    while (1) {
+        __WFI();
+    }
+#endif
+}