diff options
author | Etienne Carriere <etienne.carriere@linaro.org> | 2020-05-11 13:40:24 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2020-05-12 10:27:21 +0200 |
commit | 193e08934333b2ffb3b8c7ebaf05c4f8995c569f (patch) | |
tree | d578834c8cfb368c7f08d0b73702c61b7e0fcf69 | |
parent | f86ab8e7e0de869dfa25ca05a37ee070d7e5b86b (diff) |
plat-hisilicon: psci: support Arm SMCCC_VERSION function ID
As per Arm SMCCC v1.1 specification [1], PSCI PSCI_FEATURES function ID
should report Arm Architecture Call SMCCC_VERSION as supported when
the secure firmware supports both PSCI PSCI_FEATURES function ID and
Arm SMCCC_VERSION function ID.
Link: [1] https://developer.arm.com/docs/den0028/latest
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Forissier <jerome@forissier.org>
-rw-r--r-- | core/arch/arm/plat-hisilicon/psci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/arch/arm/plat-hisilicon/psci.c b/core/arch/arm/plat-hisilicon/psci.c index dad87030..0fc4a9a3 100644 --- a/core/arch/arm/plat-hisilicon/psci.c +++ b/core/arch/arm/plat-hisilicon/psci.c @@ -15,6 +15,7 @@ #include <stdint.h> #include <sm/optee_smc.h> #include <sm/psci.h> +#include <sm/std_smc.h> #include <tee/entry_std.h> #include <tee/entry_fast.h> @@ -27,6 +28,7 @@ int psci_features(uint32_t psci_fid) { switch (psci_fid) { + case ARM_SMCCC_VERSION: case PSCI_PSCI_FEATURES: case PSCI_VERSION: case PSCI_SYSTEM_RESET: |