[U-Boot] [PATCH v3 23/72] sandbox: Add a way to reset sandbox state for tests

sjg at google.com sjg at google.com
Thu May 25 00:06:45 UTC 2017


Running a new test should reset the sandbox state to avoid tests
interferring with each other. Move the existing state-reset code into a
function so it can be used from tests.

Also update the code to reset the SPI devices and adjust the test code to
call it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v3:
- Clear the watchdog state also

Changes in v2: None

 arch/sandbox/cpu/state.c         | 15 +++++++++++----
 arch/sandbox/include/asm/state.h |  7 +++++++
 test/dm/test-main.c              |  1 +
 3 files changed, 19 insertions(+), 4 deletions(-)

Applied to u-boot-dm


More information about the U-Boot mailing list