Platform: Set PPC privilege based on RoT flags

Set 'privileged' attribute of PPC of peripherals used by secure
partitions based on Partition flags (e.g. App RoT / PSA RoT).

Change-Id: I2baf3a24f7c8c614630d3bc2f9e2fd24c6f46975
Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com>
diff --git a/secure_fw/spm/spm_api_ipc.c b/secure_fw/spm/spm_api_ipc.c
index cca156e..dc27023 100644
--- a/secure_fw/spm/spm_api_ipc.c
+++ b/secure_fw/spm/spm_api_ipc.c
@@ -508,15 +508,6 @@
     return IPC_ERROR_MEMORY_CHECK;
 }
 
-uint32_t tfm_spm_partition_get_privileged_mode(uint32_t partition_flags)
-{
-    if (partition_flags & SPM_PART_FLAG_PSA_ROT) {
-        return TFM_PARTITION_PRIVILEGED_MODE;
-    } else {
-        return TFM_PARTITION_UNPRIVILEGED_MODE;
-    }
-}
-
 /********************** SPM functions for thread mode ************************/
 
 void tfm_spm_init(void)
@@ -545,7 +536,7 @@
         platform_data_p = partition->platform_data_list;
         if (platform_data_p != NULL) {
             while ((*platform_data_p) != NULL) {
-                tfm_spm_hal_configure_default_isolation(*platform_data_p);
+                tfm_spm_hal_configure_default_isolation(i, *platform_data_p);
                 ++platform_data_p;
             }
         }