• Samuel Holland's avatar
    allwinner: psci: Improve system shutdown/reset sequence · dae98b3a
    Samuel Holland authored
    
    
    - When the SCPI shutdown/reset command returns success, the SCP is
      still waiting for the CPU to enter WFI. Do that.
    - Peform board-level poweroff before CPU poweroff. If there is a PMIC
      available, it will turn everything off including the CPUs, so doing
      CPU poweroff first is a waste of cycles.
    - During poweroff, attempt to turn off the local CPU using the ARISC.
      This should use slightly less power than just an infinite WFI.
    - Drop the WFI in the reset failure path. The panic will hang anyway.
    
    Change-Id: I897efecb3fe4e77a56041b97dd273156ec51ef8e
    Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
    dae98b3a
sunxi_pm.c 7.49 KB