]> git.baikalelectronics.ru Git - uboot.git/commit
dm: reset: have the reset-command perform a COLD reset
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 24 Nov 2017 17:37:58 +0000 (18:37 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 13 Dec 2017 02:53:45 +0000 (19:53 -0700)
commita560ae61f3b075bb2c22c8e572f1a3150cfb82e0
treed2211146c7e239b4bdb1eee58879c593ef099f61
parent769e2a08d6069b46a2dfc9c0b5a67cf9f877596e
dm: reset: have the reset-command perform a COLD reset

The DM version of do_reset has been issuing a warm-reset, which (on
some platforms keeps GPIOs and other parts of the platform active).
This may cause unintended behaviour, as calling do_reset usually
indicates a desire to reset the board/platform and not just the CPU.

This changes do_reset to always request a COLD reset.
Note that programmatic uses can still invoke a WARM reset through
reset_cpu() or using sysreset_walk().

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/sysreset/sysreset-uclass.c