This function is called by a PU to add or remove a wake-up source prior to going to suspend. The list of wake sources for a PU is automatically cleared whenever the PU is woken up or when one of its CPUs aborts the suspend procedure.
Note: Declaring a node as a wakeup source will ensure that the node will not be powered off. It also will cause the PMU to configure the GIC Proxy accordingly if the FPD is powered off.
Prototype
XStatus XPm_SetWakeUpSource(const enum XPmNodeId target, const enum XPmNodeId wkup_node, const u8 enable);
Parameters
The following table lists the XPm_SetWakeUpSource
function arguments.
Type | Name | Description |
---|---|---|
const enum
XPmNodeId
|
target | Node ID of the target to be woken up. |
const enum
XPmNodeId
|
wkup_node | Node ID of the wakeup device. |
const u8 | enable |
Enable flag:
|