Commit Graph

5 Commits

Author SHA1 Message Date
Joseph Chen 2ca0cbb64a dm: sysreset: disable psci sysreset for SPL and TPL
SPL is the stage early than atf/op-tee that psci sysreset
is not supported.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I46b988b3776638265bf8f374a10f9027d1ebc90f
2020-04-22 18:07:21 +08:00
Joseph Chen bcb84b5d64 dm: sysreset: support mode args for reboot/reset command
Support command like: reboot loader/bootloader/recovery, etc.
It depends on the node whose compatible is "syscon-reboot-mode".

Change-Id: I3ef497c6a4355a0d8be9a277bd77bbee43df57fb
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2019-11-12 19:34:04 +08:00
Joseph Chen bbef4bcaa1 sysreset: use psci sysreset as primary for rockchip platforms
"rockchip_reset" is applied if PSCI is not enabled.

Change-Id: Id219bf6d4c5d75e2b35af41b42ee0fc718800b68
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
2018-09-28 10:02:35 +08:00
Philipp Tomsich 13e1d84013 UPSTREAM: 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().

Change-Id: I65a8ac8e62582866e23e6451315090fdb2781ef4
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit b53f6992e9cb7f0d892ebc2b1620b55559f461be)
2018-01-17 15:27:28 +08:00
Max Filippov b25732c22b drivers/sysreset: group sysreset drivers
Create drivers/sysreset and move sysreset-uclass and all sysreset
drivers there.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
2016-08-12 09:22:17 -04:00