pm: device: add compatibility for force suspend and low power

Add support for FORCE_SUSPEND and LOW_POWER actions. Even though these
actions have no clear meaning, they are added for compatibility until
their associated states are discussed. Their usage in new code should be
discouraged until the associated states are clarified.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2021-08-02 10:30:44 +02:00 committed by Anas Nashif
commit 9e8e88aee4
2 changed files with 16 additions and 2 deletions

View file

@ -78,6 +78,10 @@ enum pm_device_action {
PM_DEVICE_ACTION_RESUME,
/** Turn off. */
PM_DEVICE_ACTION_TURN_OFF,
/** Force suspend. */
PM_DEVICE_ACTION_FORCE_SUSPEND,
/** Low power. */
PM_DEVICE_ACTION_LOW_POWER,
};
/**