summaryrefslogtreecommitdiff
path: root/zephyr/include/ap_power/ap_power_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/include/ap_power/ap_power_interface.h')
-rw-r--r--zephyr/include/ap_power/ap_power_interface.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/zephyr/include/ap_power/ap_power_interface.h b/zephyr/include/ap_power/ap_power_interface.h
index b82ef053f7..d2808f6075 100644
--- a/zephyr/include/ap_power/ap_power_interface.h
+++ b/zephyr/include/ap_power/ap_power_interface.h
@@ -1,4 +1,4 @@
-/* Copyright 2022 The Chromium OS Authors. All rights reserved.
+/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -34,6 +34,8 @@
* is hibernated or all the VRs are turned off.
*/
enum power_states_ndsx {
+ /* Power state machine is not ready; AP state is unknown. */
+ SYS_POWER_STATE_UNINIT,
/*
* Actual power states
*/
@@ -87,17 +89,17 @@ enum power_states_ndsx {
* @brief Represents the state of the AP as a mask.
*/
enum ap_power_state_mask {
- AP_POWER_STATE_HARD_OFF = BIT(0), /* Hard off (G3) */
- AP_POWER_STATE_SOFT_OFF = BIT(1), /* Soft off (S5, S4) */
- AP_POWER_STATE_SUSPEND = BIT(2), /* Suspend (S3) */
- AP_POWER_STATE_ON = BIT(3), /* On (S0) */
- AP_POWER_STATE_STANDBY = BIT(4), /* Standby (S0ix) */
+ AP_POWER_STATE_HARD_OFF = BIT(0), /* Hard off (G3) */
+ AP_POWER_STATE_SOFT_OFF = BIT(1), /* Soft off (S5, S4) */
+ AP_POWER_STATE_SUSPEND = BIT(2), /* Suspend (S3) */
+ AP_POWER_STATE_ON = BIT(3), /* On (S0) */
+ AP_POWER_STATE_STANDBY = BIT(4), /* Standby (S0ix) */
/* Common combinations, any off state */
- AP_POWER_STATE_ANY_OFF = (AP_POWER_STATE_HARD_OFF |
- AP_POWER_STATE_SOFT_OFF),
+ AP_POWER_STATE_ANY_OFF =
+ (AP_POWER_STATE_HARD_OFF | AP_POWER_STATE_SOFT_OFF),
/* This combination covers any kind of suspend i.e. S3 or S0ix. */
- AP_POWER_STATE_ANY_SUSPEND = (AP_POWER_STATE_SUSPEND |
- AP_POWER_STATE_STANDBY),
+ AP_POWER_STATE_ANY_SUSPEND =
+ (AP_POWER_STATE_SUSPEND | AP_POWER_STATE_STANDBY),
};
/**