]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: cmd: fdt: Test fdt bootcpu
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 2 Mar 2023 03:08:40 +0000 (04:08 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 8 Mar 2023 21:15:13 +0000 (13:15 -0800)
commit26281517c654f6272868e2c6c60d9aab7fd985a7
tree58c3e1b8a4d512c5ff1c9ffdd4748435dc2d976e
parente46a438c5920c21833ac3bf4c2d4d9cc7736ea1a
test: cmd: fdt: Test fdt bootcpu

Add 'fdt bootcpu' test which works as follows:
- Create basic FDT, map it to sysmem
- Print the FDT bootcpu
- Set the FDT bootcpu and read the value back using 'fdt header get'
- Perform the previous step twice to validate bootcpu overwrite

The test case can be triggered using:
"
./u-boot -Dc 'ut fdt'
"
To dump the full output from commands used during test, add '-v' flag.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/cmd/fdt.c