HAL: Rename platform init function
Align with HAL design document:
- Rename 'tfm_spm_hal_post_init' to 'tfm_hal_platform_init'.
- Set 'tfm_hal_platform_init' to weak, and platform with specific init
operation needs to override it.
- Remove 'tfm_spm_hal_post_init_platform' and move the operations to
'tfm_hal_platform_init'.
Change-Id: Ia96b3a6bae716d154edab8709eb6e277bafcb45e
Signed-off-by: Summer Qin <summer.qin@arm.com>
diff --git a/platform/include/tfm_hal_platform.h b/platform/include/tfm_hal_platform.h
index bf61a84..f8f7bae 100644
--- a/platform/include/tfm_hal_platform.h
+++ b/platform/include/tfm_hal_platform.h
@@ -8,6 +8,19 @@
#ifndef __TFM_HAL_PLATFORM_H__
#define __TFM_HAL_PLATFORM_H__
+#include "tfm_hal_defs.h"
+
+/**
+ * \brief This function performs the platform-specific initialization.
+ *
+ * This function is called after architecture and platform common initialization
+ * has finished during system early startup.
+ *
+ * \retval TFM_HAL_SUCCESS Init success.
+ * \retval TFM_HAL_ERROR_GENERIC Generic errors.
+ */
+enum tfm_hal_status_t tfm_hal_platform_init(void);
+
/**
* \brief System reset
*/