Core: Move spm code of IPC model to spm_api_ipc.c

- Moves API functions from tfm_spm.c to spm_api_ipc.c.
- Moves content from tfm_spm.h to spm_api.h.
- Removes tfm_spm.c and tfm_spm.h.

Change-Id: Idb333ec2e97e02206d6431dcbf13051aa4b108d0
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
diff --git a/secure_fw/spm/CMakeLists.inc b/secure_fw/spm/CMakeLists.inc
index ef9094b..696feb4 100644
--- a/secure_fw/spm/CMakeLists.inc
+++ b/secure_fw/spm/CMakeLists.inc
@@ -26,6 +26,9 @@
 
 set (SS_SPM_C_SRC "${SS_SPM_DIR}/spm_api.c")
 
+if(TFM_PSA_API)
+	list(APPEND SS_SPM_C_SRC "${SS_SPM_DIR}/spm_api_ipc.c")
+endif()
 
 #Append all our source files to global lists.
 list(APPEND ALL_SRC_C ${SS_SPM_C_SRC})