From 193e08934333b2ffb3b8c7ebaf05c4f8995c569f Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Mon, 11 May 2020 13:40:24 +0200 Subject: 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 Reviewed-by: Jerome Forissier --- core/arch/arm/plat-hisilicon/psci.c | 2 ++ 1 file changed, 2 insertions(+) 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 #include #include +#include #include #include @@ -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: -- cgit v1.2.3