On Tue, 12 Jan 2021 at 01:43, Jorge Ramirez-Ortiz <jo...@foundries.io> wrote: > > 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 <jo...@foundries.io> > --- > drivers/tee/optee/Makefile | 1 + > drivers/tee/optee/i2c.c | 90 ++++++++++++++++++++++++ > drivers/tee/optee/optee_msg.h | 21 ++++++ > drivers/tee/optee/optee_msg_supplicant.h | 5 ++ > drivers/tee/optee/optee_private.h | 17 +++++ > drivers/tee/optee/supplicant.c | 3 + > 6 files changed, 137 insertions(+) > create mode 100644 drivers/tee/optee/i2c.c >
Reviewed-by: Simon Glass <s...@chromium.org>