• Jens Wiklander's avatar
    optee: refactor driver with internal callbacks · 4602c584
    Jens Wiklander authored
    The OP-TEE driver is refactored with three internal callbacks replacing
    direct calls to optee_from_msg_param(), optee_to_msg_param() and
    optee_do_call_with_arg().
    
    These functions a central to communicating with OP-TEE in secure world
    by using the SMC Calling Convention directly.
    
    This refactoring makes room for using other primitives to communicate
    with OP-TEE in secure world while being able to reuse as much as
    possible from the present driver.
    Reviewed-by: default avatarSumit Garg <sumit.garg@linaro.org>
    Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
    4602c584
call.c 18 KB