SPM: Depreciate vague header 'tfm_internal.h'
The name of this file is vague. Depreciate it by:
- Remove tfm_internal.h
- Move function model architecture code into a new create arch.h
- Create tfm_boot_data.h and put boot related function declaration
in it
Change-Id: Ia2ad1b0f95c1137624f99a4e81807bedf9086857
Signed-off-by: Summer Qin <summer.qin@arm.com>
diff --git a/secure_fw/spm/common/init/tfm_boot_data.c b/secure_fw/spm/common/init/tfm_boot_data.c
index c4b1a29..901d43e 100644
--- a/secure_fw/spm/common/init/tfm_boot_data.c
+++ b/secure_fw/spm/common/init/tfm_boot_data.c
@@ -9,7 +9,6 @@
#include "tfm_boot_status.h"
#include "region_defs.h"
#include "tfm_memory_utils.h"
-#include "tfm_internal.h"
#include "tfm_api.h"
#include "tfm_core_utils.h"
#include "spm_partition_defs.h"
diff --git a/secure_fw/spm/common/tfm_boot_data.h b/secure_fw/spm/common/tfm_boot_data.h
new file mode 100644
index 0000000..3df9fe6
--- /dev/null
+++ b/secure_fw/spm/common/tfm_boot_data.h
@@ -0,0 +1,27 @@
+/*
+ * Copyright (c) 2020, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __TFM_BOOT_DATA_H__
+#define __TFM_BOOT_DATA_H__
+
+#include <stdint.h>
+
+/**
+ * \brief Retrieve secure partition related data from shared memory area, which
+ * stores shared data between bootloader and runtime firmware.
+ *
+ * \param[in] args Pointer to stack frame, which carries input parameters.
+ */
+void tfm_core_get_boot_data_handler(uint32_t args[]);
+
+/**
+ * \brief Validate the content of shared memory area, which stores the shared
+ * data between bootloader and runtime firmware.
+ */
+void tfm_core_validate_boot_data(void);
+
+#endif /* __TFM_BOOT_DATA_H__ */