aboutsummaryrefslogtreecommitdiff
path: root/include/opal.h
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-02-09 15:09:20 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-09 15:09:20 +1100
commit787071d5522c420d45cf595aba62e8f94e65524e (patch)
treea685a7ea70a5be178e5950b01ebd4b6ac07ba969 /include/opal.h
parent9e124382d43ed5e51cc288dcba86b4f4135b8927 (diff)
downloadskiboot-787071d5522c420d45cf595aba62e8f94e65524e.zip
skiboot-787071d5522c420d45cf595aba62e8f94e65524e.tar.gz
skiboot-787071d5522c420d45cf595aba62e8f94e65524e.tar.bz2
Move flags for PM states to opal.h, exposing defines to OS
In Linux, we had OPAL_PM_(NAP|SLEEP|WINKLE)_ENABLED defines, this makes sense from an API PoV as having defines for flags in DT is useful, but we should clearly define what these flags are. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/opal.h')
-rw-r--r--include/opal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/opal.h b/include/opal.h
index e8e6fd0..8088175 100644
--- a/include/opal.h
+++ b/include/opal.h
@@ -161,6 +161,16 @@
#define OPAL_I2C_REQUEST 109
#define OPAL_LAST 109
+/* Device tree flags */
+
+/* Flags set in power-mgmt nodes in device tree if
+ * respective idle states are supported in the platform.
+ */
+#define OPAL_PM_NAP_ENABLED 0x00010000
+#define OPAL_PM_SLEEP_ENABLED 0x00020000
+#define OPAL_PM_WINKLE_ENABLED 0x00040000
+#define OPAL_PM_SLEEP_ENABLED_ER1 0x00080000 /* with workaround */
+
#ifndef __ASSEMBLY__
/* Other enums */