]> git.dujemihanovic.xyz Git - u-boot.git/commit
sysreset: switch to using SYSRESET_POWER_OFF for poweroff
authorUrja Rannikko <urjaman@gmail.com>
Thu, 16 May 2019 21:48:41 +0000 (21:48 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 19 Aug 2019 04:43:26 +0000 (12:43 +0800)
commit857f39d7b09804566b23e0f20fcb04601f2ecb52
tree9c0d466a696bed124bf043b050640a95abaa9f74
parent7ba79f2696f0a6d0905cb080ac2649edc0248809
sysreset: switch to using SYSRESET_POWER_OFF for poweroff

It seems that SYSRESET_POWER_OFF was added recently, and all previous code
used SYSRESET_POWER for poweroff. SYSRESET_POWER is supposed to be a
PMIC-level power cycle, not a poweroff.

(Comment by Simon Glass)
SYSRESET_POWER means to do a power reset (removing and reinstating all power)
SYSRESET_POWER_OFF means to turn the device off and leave it off

Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>
(Update comment to help understand the patch)
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-stm32mp/cmd_poweroff.c
arch/sandbox/cpu/state.c
drivers/sysreset/sysreset_psci.c
drivers/sysreset/sysreset_sandbox.c