diff options
author | Jorge Ramirez-Ortiz <jorge@foundries.io> | 2021-01-25 15:28:40 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-16 19:48:20 +0300 |
commit | 4e9635618529e0e404b641e155513ad7f313f423 (patch) | |
tree | b10aa37f03c9fdfa9cb268a2b2684a51cb0cb43c /drivers/tee/optee/optee_msg_supplicant.h | |
parent | eb5fd9e46c11ea41430d9c5bcc81d4583424216e (diff) | |
download | u-boot-4e9635618529e0e404b641e155513ad7f313f423.tar.xz |
drivers: tee: i2c trampoline driver
This commit gives the secure world access to the I2C bus so it can
communicate with I2C slaves (typically those would be secure elements
like the NXP SE050).
A similar service implementation has been merged in linux:
c05210ab ("drivers: optee: allow op-tee to access devices on the i2c
bus")
Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'drivers/tee/optee/optee_msg_supplicant.h')
-rw-r--r-- | drivers/tee/optee/optee_msg_supplicant.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/tee/optee/optee_msg_supplicant.h b/drivers/tee/optee/optee_msg_supplicant.h index a0fb8063c8..963cfd4782 100644 --- a/drivers/tee/optee/optee_msg_supplicant.h +++ b/drivers/tee/optee/optee_msg_supplicant.h @@ -148,6 +148,11 @@ #define OPTEE_MSG_RPC_CMD_SHM_FREE 7 /* + * I2C bus access + */ +#define OPTEE_MSG_RPC_CMD_I2C_TRANSFER 21 + +/* * Was OPTEE_MSG_RPC_CMD_SQL_FS, which isn't supported any longer */ #define OPTEE_MSG_RPC_CMD_SQL_FS_RESERVED 8 |