]> git.baikalelectronics.ru Git - uboot.git/commit
test: dm: tee: extend with RPC test
authorIgor Opaniuk <igor.opaniuk@foundries.io>
Mon, 25 Jan 2021 12:28:43 +0000 (14:28 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 16 Feb 2021 16:48:20 +0000 (11:48 -0500)
commit7837af532ce9510a4430b69714d4534e07295d72
treef6ef65fbeacc71a6c6c091d4fdd9231809909040
parent029638e0def9d558a001cf0e308ac63745d0b577
test: dm: tee: extend with RPC test

Extend existing DM tee tests adding test coverage for reverse RPC calls.
Currently this commit only adds tests for I2C requests from TEE driver
to TEE supplicant, for instance reading/writing data to emulated i2c
eeprom defines in standard sandbox test device tree
(arch/sandbox/dts/test.dtb):

=> i2c bus
Bus 0: i2c@0  (active 0)
   2c: eeprom@2c, offset len 1, flags 0
   ...

Running TEE tests:
=> ut dm tee
Test: dm_test_tee: tee.c
Test: dm_test_tee: tee.c (flat tree)
Failures: 0

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
test/dm/tee.c