Request for TISCI_MSG_PREPARE_SLEEP.
- Parameters
-
hdr | TISCI header to provide ACK/NAK flags to the host. |
mode | Low power mode to enter. |
ctx_lo | Low 32-bits of physical pointer to address to use for context save. |
ctx_hi | High 32-bits of physical pointer to address to use for context save. |
debug_flags | Flags that can be set to halt the sequence during suspend or resume to allow JTAG connection and debug. |
This message is used as the first step of entering a low power mode. It allows configurable information, including which state to enter to be easily shared from the application, as this is a non-secure message and therefore can be sent by anyone.
Notes:
- Mode is defined as one of TISCI_MSG_VALUE_SLEEP_MODE_x macros.
- Mode parameter should be equal to partial IO low power mode for partial IO mode entry. In this mode, ctx_lo and ctx_hi are unused. There is no requirement of "carve out" in DDR.
- Mode parameter should be equal to intermediate value "DM managed" if mode selection logic has to be applied. In this case, ctx_lo and ctx_hi are reserved for internal use (DM application should allocate "carve out" for LPM)
- For mode value not equal to "DM managed" or partial IO, ctx_lo and ctx_hi should be a reserved memory region as decided on by the HLOS. This region should be a carve out in DDR and valid for use with DMA. Otherwise there are no constraints on this memory. An encrypted blob will be placed here and only a valid blob can be decrypted and authenticated, which eliminates risk of tampering.