From 30a030a9aff56a16e6bf4fee0ec31af7472955dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arve=20Hj=C3=B8nnev=C3=A5g?= Date: Thu, 9 Oct 2014 21:24:17 -0700 Subject: trusty: Get version string from trusty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Print trusty version to kernel log on startup, and export it in sysfs. Change-Id: Ibb503a9385a223b590b882578fdd6332fc750a8d Signed-off-by: Arve Hjønnevåg --- include/linux/trusty/smcall.h | 1 + include/linux/trusty/trusty.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'include/linux') diff --git a/include/linux/trusty/smcall.h b/include/linux/trusty/smcall.h index 278a4b256..4344683f6 100644 --- a/include/linux/trusty/smcall.h +++ b/include/linux/trusty/smcall.h @@ -71,5 +71,6 @@ #define SMC_FC_CPU_RESUME SMC_FASTCALL_NR (SMC_ENTITY_SECURE_MONITOR, 8) #define SMC_FC_AARCH_SWITCH SMC_FASTCALL_NR (SMC_ENTITY_SECURE_MONITOR, 9) +#define SMC_FC_GET_VERSION_STR SMC_FASTCALL_NR (SMC_ENTITY_SECURE_MONITOR, 10) #endif /* __LINUX_TRUSTY_SMCALL_H */ diff --git a/include/linux/trusty/trusty.h b/include/linux/trusty/trusty.h index ce00c1d46..abb77f1db 100644 --- a/include/linux/trusty/trusty.h +++ b/include/linux/trusty/trusty.h @@ -52,5 +52,5 @@ int trusty_call_notifier_register(struct device *dev, struct notifier_block *n); int trusty_call_notifier_unregister(struct device *dev, struct notifier_block *n); - +const char *trusty_version_str_get(struct device *dev); #endif -- cgit v1.2.2