From 020c79da1eb22b55b784800304d463f4f5a05ced Mon Sep 17 00:00:00 2001 From: Hisping Lin Date: Fri, 22 May 2020 19:01:29 +0800 Subject: [PATCH] lib: optee_client: communicate with optee os v2 32 bits Change-Id: Ic352f86e73631b64110b9d0d1742dc6b98e97d59 Signed-off-by: Hisping Lin --- lib/optee_clientApi/OpteeClientSMC.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/optee_clientApi/OpteeClientSMC.c b/lib/optee_clientApi/OpteeClientSMC.c index b4d8007462..5dd8ce32da 100644 --- a/lib/optee_clientApi/OpteeClientSMC.c +++ b/lib/optee_clientApi/OpteeClientSMC.c @@ -115,7 +115,6 @@ TEEC_Result TEEC_SMC_OpenSession(TEEC_Context *context, #endif #ifdef CONFIG_OPTEE_V2 -#if defined CONFIG_ARM64 || defined CONFIG_ARM64_BOOT_AARCH32 uint8_t * session_uuid = (uint8_t *)&TeeSmcMetaSession->uuid; tee_uuid_to_octets(session_uuid, destination); memcpy((void *)&TeeSmc32Param[0].u.value, &TeeSmcMetaSession->uuid, sizeof(TeeSmcMetaSession->uuid)); @@ -125,9 +124,6 @@ TEEC_Result TEEC_SMC_OpenSession(TEEC_Context *context, OPTEE_MSG_ATTR_META_V2; TeeSmc32Param[1].attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT_V2 | OPTEE_MSG_ATTR_META_V2; -#else - printf("TEEC: Not support! All rockchips use optee v2.5 are 64 bits! \n"); -#endif #endif SetTeeSmc32Params(operation, TeeSmc32Param + MetaNum); @@ -307,12 +303,8 @@ void SetTeeSmc32Params(TEEC_Operation *operation, #endif #ifdef CONFIG_OPTEE_V2 -#if defined CONFIG_ARM64 || defined CONFIG_ARM64_BOOT_AARCH32 attr += (OPTEE_MSG_ATTR_TYPE_TMEM_INPUT_V2 - TEEC_MEMREF_TEMP_INPUT); debug("TEEC: OPTEE_OS_V2 ARCH64 attr %x\n", attr); -#else - printf("TEEC: Not support! All rockchips use optee v2 are 64 bits! \n"); -#endif #endif TeeSmc32Param[ParamCount].attr = attr;