]> git.baikalelectronics.ru Git - uboot.git/commit
sandbox: sysreset: Update to support power-on reset
authorSimon Glass <sjg@chromium.org>
Sat, 24 Nov 2018 04:29:28 +0000 (21:29 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 5 Dec 2018 13:01:34 +0000 (06:01 -0700)
commit736aa24b07c571718f27a49c96c8c29873bbd1c8
tree5b0f9056117025030bfdc318c77ab8be99aa91a7
parent8f4a0fa7bde5ac19dc44c28591f6fbc070749aa9
sandbox: sysreset: Update to support power-on reset

If U-Boot is started from SPL or TPL, then those earlier phases deal with
the reset cause. On real hardware this cause may be lost once it is read.
Emulate that behaviour in sandbox by reporting a warm reset when a
previous phase has run since start-up.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/sysreset/sysreset_sandbox.c
test/dm/sysreset.c