arm-trusted-firmware/plat/allwinner
Samuel Holland dae98b3a98 allwinner: psci: Improve system shutdown/reset sequence
- 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: Samuel Holland <samuel@sholland.org>
2021-01-24 17:17:22 -06:00
..
common allwinner: psci: Improve system shutdown/reset sequence 2021-01-24 17:17:22 -06:00
sun50i_a64 Merge changes I3703868b,Ie77476db into integration 2020-12-22 15:51:24 +00:00
sun50i_h6 Merge changes I3703868b,Ie77476db into integration 2020-12-22 15:51:24 +00:00