diff options
author | Sughosh Ganu | 2022-10-21 18:16:05 +0530 |
---|---|---|
committer | Tom Rini | 2022-10-31 14:47:33 -0400 |
commit | 873cf8ac70b620a0c1417d804bd4fb4246c34ebc (patch) | |
tree | 5381872ddd9dd0f56887cbd4d96e036f84651c7e /arch/sandbox | |
parent | e68c03be46ce9bf409a2a9ad761a247d8640c89a (diff) |
test: dm: Add test cases for FWU Metadata uclass
Add test cases for accessing the FWU Metadata on the sandbox
platform. The sandbox platform also uses the metadata access driver
for GPT partitioned block devices.
The FWU feature will be tested on the sandbox64 variant with a raw
capsule. Remove the FIT capsule testing from sandbox64 defconfig --
the FIT capsule test will be run on the sandbox_flattree variant.
Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/Kconfig | 6 | ||||
-rw-r--r-- | arch/sandbox/dts/test.dts | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig index 35508c6b292..96b3402b47c 100644 --- a/arch/sandbox/Kconfig +++ b/arch/sandbox/Kconfig @@ -72,3 +72,9 @@ config SYS_FDT_LOAD_ADDR See `doc/arch/sandbox.rst` for more information. endmenu + +config FWU_NUM_BANKS + default 2 + +config FWU_NUM_IMAGES_PER_BANK + default 2 diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts index 25fd2bcab87..dffe10adbf4 100644 --- a/arch/sandbox/dts/test.dts +++ b/arch/sandbox/dts/test.dts @@ -1001,7 +1001,7 @@ }; /* This is used for the fastboot tests */ - mmc0 { + mmc0: mmc0 { compatible = "sandbox,mmc"; }; @@ -1740,6 +1740,11 @@ thermal { compatible = "sandbox,thermal"; }; + + fwu-mdata { + compatible = "u-boot,fwu-mdata-gpt"; + fwu-mdata-store = <&mmc0>; + }; }; #include "sandbox_pmic.dtsi" |