zynqmp: pm: Call set_wakeup_source for all wake devices on sys-suspend
During system suspend, identify slaves which are configured
as wake sources and call pm_set_wakeup_source API for each of them.

Identifying if device may wake the system is done by checking if any
interrupt of that device is enabled in GICD_ISENABLER when the APU is
about to enter SUSPEND_TO_RAM state. If such interrupt is found,
pm_set_wakeup_source is called with corresponding PM node ID as
argument.

Signed-off-by: Filip Drazic <filip.drazic@aggios.com>
1 parent 6aa4c53 commit b516b7dc5dfeaf14f452f608ce9014c79153ce59
@Filip Drazic Filip Drazic authored on 26 Jul 2016
Soren Brinkmann committed on 13 Sep 2016
Showing 4 changed files
View
plat/xilinx/zynqmp/pm_service/pm_api_sys.c
View
plat/xilinx/zynqmp/pm_service/pm_client.c
View
plat/xilinx/zynqmp/pm_service/pm_client.h
View
plat/xilinx/zynqmp/pm_service/pm_defs.h