zynqmp: pm: Provide state argument to the pm_self_suspend API call
authorFilip Drazic <[email protected]>
Wed, 20 Jul 2016 15:17:39 +0000 (17:17 +0200)
committerSoren Brinkmann <[email protected]>
Tue, 13 Sep 2016 16:19:03 +0000 (09:19 -0700)
commit95fd990fe601af26b3d4e0aa34aa2d2aad70de30
tree9089c8777d3befb87f1ba030d1c3a139aae02b2e
parenteccc7cde9f3eba2de4e533dcc7fde117adbf59cc
zynqmp: pm: Provide state argument to the pm_self_suspend API call

The state argument of the pm_self_suspend API encodes the state to
which the APU intends to suspend. The state can be:
- PM_APU_STATE_CPU_IDLE - processor power down, all memories remain
  on
- PM_APU_STATE_SUSPEND_TO_RAM - all processors powered down, L2$
  powered down, all OCM banks in retention and DDR in
  self-refresh.
The calls for setting requirements for L2$ and OCM banks are now
redundant and removed.

Signed-off-by: Filip Drazic <[email protected]>
[ sb
 - remove redundant #defines
]
Signed-off-by: Sören Brinkmann <[email protected]>
plat/xilinx/zynqmp/plat_psci.c
plat/xilinx/zynqmp/pm_service/pm_api_sys.c
plat/xilinx/zynqmp/pm_service/pm_client.c
plat/xilinx/zynqmp/pm_service/pm_defs.h