Hi Jun,

On 7 September 2018 at 10:42, Jun Nie <jun.nie@linaro.org> wrote:
Add psci features list for query. The list is based on
current implemented psci functions.

Signed-off-by: Jun Nie <jun.nie@linaro.org>
---
 core/arch/arm/plat-imx/pm/psci.c | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

We don't use the tee-dev mailing for patches.
Could you please create a pull request at https://github.com/OP-TEE/optee_os
instead?

Thanks,
-- 
Jerome


diff --git a/core/arch/arm/plat-imx/pm/psci.c b/core/arch/arm/plat-imx/pm/psci.c
index 1ff6e65..89f4839 100644
--- a/core/arch/arm/plat-imx/pm/psci.c
+++ b/core/arch/arm/plat-imx/pm/psci.c
@@ -28,16 +28,27 @@
 int psci_features(uint32_t psci_fid)
 {
        switch (psci_fid) {
+       case PSCI_PSCI_FEATURES:
+       case PSCI_VERSION:
+       case PSCI_CPU_SUSPEND:
+       case PSCI_CPU_OFF:
 #ifdef CFG_BOOT_SECONDARY_REQUEST
        case PSCI_CPU_ON:
-               return 0;
 #endif
-
+       case PSCI_AFFINITY_INFO:
+       case PSCI_SYSTEM_OFF:
+       case PSCI_SYSTEM_RESET:
+               return PSCI_RET_SUCCESS;
        default:
                return PSCI_RET_NOT_SUPPORTED;
        }
 }

+uint32_t psci_version(void)
+{
+       return PSCI_VERSION_1_0;
+}
+
 #ifdef CFG_BOOT_SECONDARY_REQUEST
 int psci_cpu_on(uint32_t core_idx, uint32_t entry,
                uint32_t context_id)
--
2.7.4

_______________________________________________
Tee-dev mailing list
Tee-dev@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/tee-dev