sandbox: Support setting up the other FDT for testing
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:10 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 Sep 2022 20:10:43 +0000 (16:10 -0400)
commit756c01422dfa193097aa3d43c083b8b23e4b2301
treedea1edaa0d86459012b5f8edb92a0fe75bc8a656
parent9859d89b6e859a242d083a96950e0c05f60a5152
sandbox: Support setting up the other FDT for testing

Provide a way to copy over the 'other' FDT when running tests. This loads
it and allocates memory for the copy, if not done already, then does the
copy.

Avoid using U-Boot's malloc() pool for these copies, at least for now,
since they are part of the test system.

Tidy up the cpu.c header files while here.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/cpu.c
arch/sandbox/include/asm/test.h
include/test/test.h