aboutsummaryrefslogtreecommitdiff
path: root/include/plat/common/platform.h
diff options
context:
space:
mode:
authorManish V Badarkhe <Manish.Badarkhe@arm.com>2020-02-22 08:43:00 +0000
committerManish V Badarkhe <Manish.Badarkhe@arm.com>2020-03-17 10:14:35 +0000
commit0e753437e75b68476b524d32c7e9db7f28d2ad85 (patch)
tree5fb7659f153f6305f355b7abc702abdf7160ee85 /include/plat/common/platform.h
parentbb37363bd30f5ccc625f47350d3ae56ddcddb236 (diff)
downloadtrusted-firmware-a-0e753437e75b68476b524d32c7e9db7f28d2ad85.tar.gz
Implement SMCCC_ARCH_SOC_ID SMC call
Implemented SMCCC_ARCH_SOC_ID call in order to get below SOC information: 1. SOC revision 2. SOC version Implementation done using below SMCCC specification document: https://developer.arm.com/docs/den0028/c Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Change-Id: Ie0595f1c345a6429a6fb4a7f05534a0ca9c9a48b
Diffstat (limited to 'include/plat/common/platform.h')
-rw-r--r--include/plat/common/platform.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h
index 5b5ebb9731..e4431d2f03 100644
--- a/include/plat/common/platform.h
+++ b/include/plat/common/platform.h
@@ -322,4 +322,14 @@ void plat_flush_next_bl_params(void);
*/
unsigned int platform_core_pos_helper(unsigned long mpidr);
+/*
+ * Optional function to get SOC version
+ */
+int32_t plat_get_soc_version(void);
+
+/*
+ * Optional function to get SOC revision
+ */
+int32_t plat_get_soc_revision(void);
+
#endif /* PLATFORM_H */