SPM: tfm_hal_post_partition_init_hook - platform hook

tfm_hal_post_partition_init_hook is a new hook that is optionally called
if CONFIG_TFM_POST_PARTITION_INIT_HOOK macro is set to 1. It allows
platform to implement some additional stuff after last partition has
been bounded right before starting scheduler.

Signed-off-by: Roman Mazurak <roman.mazurak@infineon.com>
Change-Id: I743bb7870b7fb68683596c097f7d57490558863c
diff --git a/docs/design_docs/software/hardware_abstraction_layer.rst b/docs/design_docs/software/hardware_abstraction_layer.rst
index e8fbf11..b93ca38 100644
--- a/docs/design_docs/software/hardware_abstraction_layer.rst
+++ b/docs/design_docs/software/hardware_abstraction_layer.rst
@@ -572,6 +572,29 @@
 - ``true`` - A switching is needed
 - ``false`` - No need for a boundary switch
 
+tfm_hal_post_partition_init_hook()
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+**Prototype**
+
+.. code-block:: c
+
+  enum tfm_hal_status_t tfm_hal_post_partition_init_hook(void)
+
+**Description**
+
+This API let the platform to finish static isolation after all partitions have been bound.
+It's called by SPM right before starting scheduler. Use CONFIG_TFM_POST_PARTITION_INIT_HOOK
+to enable it.
+
+**Parameter**
+
+- ``void`` - None
+
+**Return Values**
+
+- ``TFM_HAL_SUCCESS`` - Booting has been successful.
+- ``TFM_HAL_ERROR_GENERIC`` - Error occurred.
+
 Log API
 =======
 The log API is used by the :term:`TF-M` :doc:`log system </design_docs/tfm_log_system_design_document>`.