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.h b/secure_fw/spm/spm_api.h
index 7c4a9a6..d7d0e7d 100644
--- a/secure_fw/spm/spm_api.h
+++ b/secure_fw/spm/spm_api.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2019, Arm Limited. All rights reserved.
+ * Copyright (c) 2017-2020, Arm Limited. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  *
@@ -215,6 +215,16 @@
  */
 void tfm_spm_partition_change_privilege(uint32_t privileged);
 
+/**
+ * \brief                   Get the current partition mode.
+ *
+ * \param[in] partition_flags               Flags of current partition
+ *
+ * \retval TFM_PARTITION_PRIVILEGED_MODE    Privileged mode
+ * \retval TFM_PARTITION_UNPRIVILEGED_MODE  Unprivileged mode
+ */
+uint32_t tfm_spm_partition_get_privileged_mode(uint32_t partition_flags);
+
 /*********************** library definitions ***********************/
 
 #ifndef TFM_PSA_API
@@ -405,16 +415,6 @@
  */
 uint32_t tfm_spm_partition_get_running_partition_id(void);
 
-/**
- * \brief                   Get the current partition mode.
- *
- * \param[in] partition_flags               Flags of current partition
- *
- * \retval TFM_PARTITION_PRIVILEGED_MODE    Privileged mode
- * \retval TFM_PARTITION_UNPRIVILEGED_MODE  Unprivileged mode
- */
-uint32_t tfm_spm_partition_get_privileged_mode(uint32_t partition_flags);
-
 /******************** Service handle management functions ********************/
 
 /**