Skip to content
Commit c52cd074 authored by Alexey Romanov's avatar Alexey Romanov Committed by Neil Armstrong
Browse files

drivers: introduce Secure Monitor uclass



At the moment, we don't have a common API for working with
SM, only the smc_call() function. This approach is not generic
and difficult to configure and maintain.

This patch adds UCLASS_SM with the generic API:

- sm_call()
- sm_call_write()
- sm_call_read()

These functions operate with struct pt_regs, which describes
Secure Monitor arguments.

Signed-off-by: default avatarAlexey Romanov <avromanov@salutedevices.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20230921081346.22157-2-avromanov@salutedevices.com


Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
parent a9234561
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment