This function can be used by a privileged PU to shut down or restart the complete device.
Note: In either case the PMU will call XPm_InitSuspendCb for each of the other PUs, allowing them to gracefully shut down. If a PU is asleep it will be woken up by the PMU. The PU making the XPm_SystemShutdown should perform its own suspend procedure after calling this API. It will not receive an init suspend callback.
Prototype
XStatus XPm_SystemShutdown(u32 type, u32 subtype);
Parameters
The following table lists the XPm_SystemShutdown
function arguments.
Type | Name | Description |
---|---|---|
u32 | type |
Should the system be restarted automatically?
|
u32 | subtype | Restart subtype (SYSTEM or PS_ONLY or SUBSYSTEM) |