msm: scm: Add a feat version query API

Some users of SCM need to detect features and also detect if
those features have certain versions available. Most notably the
jtag save restore code needs to detect if the secure environment
supports save and restore of jtag state so that it can skip doing
its own save and restore.

Add this API so that the code can work with either version of the
secure code.

Change-Id: Ice34a894b1eb48cbf741138858e68c91c6bdd98d
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
diff --git a/arch/arm/mach-msm/include/mach/scm.h b/arch/arm/mach-msm/include/mach/scm.h
index af4691a..7cc5f7a 100644
--- a/arch/arm/mach-msm/include/mach/scm.h
+++ b/arch/arm/mach-msm/include/mach/scm.h
@@ -38,6 +38,7 @@
 
 extern u32 scm_get_version(void);
 extern int scm_is_call_available(u32 svc_id, u32 cmd_id);
+extern int scm_get_feat_version(u32 feat);
 
 #else
 
@@ -73,5 +74,10 @@
 	return 0;
 }
 
+static inline int scm_get_feat_version(u32 feat)
+{
+	return 0;
+}
+
 #endif
 #endif