Make supported FF-A version configurable in libsp
Introduce CFG_FFA_VERSION macro for configuring FF-A version in libsp.
The value of CFG_FFA_VERSION follows the version format of FFA_VERSION.
The allowed versions are FF-A v1.0 and v1.1.
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: I7f2b425f9267758c4dfec513bc7a3bde773c7a97
diff --git a/components/messaging/ffa/libsp/ffa.c b/components/messaging/ffa/libsp/ffa.c
index 6a51379..1afe44d 100644
--- a/components/messaging/ffa/libsp/ffa.c
+++ b/components/messaging/ffa/libsp/ffa.c
@@ -79,7 +79,7 @@
uint32_t self_version = 0;
self_version = (FFA_VERSION_MAJOR << FFA_VERSION_MAJOR_SHIFT) |
- (FFA_VERSION_MINOR << FFA_VERSION_MINOR);
+ (FFA_VERSION_MINOR << FFA_VERSION_MINOR_SHIFT);
ffa_svc(FFA_VERSION, self_version, FFA_PARAM_MBZ, FFA_PARAM_MBZ,
FFA_PARAM_MBZ, FFA_PARAM_MBZ, FFA_PARAM_MBZ, FFA_PARAM_MBZ,