mirror of
https://xff.cz/git/u-boot/
synced 2025-09-27 05:21:16 +02:00
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>
This commit is contained in:
committed by
Kever Yang
parent
7ba79f2696
commit
857f39d7b0
@@ -18,7 +18,7 @@ static int psci_sysreset_request(struct udevice *dev, enum sysreset_t type)
|
||||
case SYSRESET_COLD:
|
||||
function_id = PSCI_0_2_FN_SYSTEM_RESET;
|
||||
break;
|
||||
case SYSRESET_POWER:
|
||||
case SYSRESET_POWER_OFF:
|
||||
function_id = PSCI_0_2_FN_SYSTEM_OFF;
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user