]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: introduce Secure Monitor uclass
authorAlexey Romanov <avromanov@salutedevices.com>
Thu, 21 Sep 2023 08:13:34 +0000 (11:13 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Sun, 15 Oct 2023 10:23:48 +0000 (12:23 +0200)
commitc52cd07407af6467d68f1ed9dd180fb72bbf0313
treee5cc8087f0a6a756c05311aa65ef82e230581c0e
parenta92345610ed3596bc25de08b17cb29c86b508e6c
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: Alexey Romanov <avromanov@salutedevices.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20230921081346.22157-2-avromanov@salutedevices.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/Kconfig
drivers/Makefile
drivers/sm/Kconfig [new file with mode: 0644]
drivers/sm/Makefile [new file with mode: 0644]
drivers/sm/sm-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/sm-uclass.h [new file with mode: 0644]
include/sm.h [new file with mode: 0644]