summaryrefslogtreecommitdiff
path: root/include/power.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2018-07-19 16:04:37 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-07-25 19:45:30 -0700
commit1241107ff7de1e18f80cd83d93a6cb1dc09134a3 (patch)
tree0936b2165bb1f03156ff97cdade0c3601ab67a89 /include/power.h
parentd64a0c69a99c494724db250c8af51ec93706c73e (diff)
downloadchrome-ec-1241107ff7de1e18f80cd83d93a6cb1dc09134a3.tar.gz
power: Add power_get_state API
This patch adds power_get_state API, which returns the low-level power chipset state. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> BUG=none BRANCH=none TEST=make buildall Change-Id: I104fdf9623f64416d8c27d583cd434920808afdb Reviewed-on: https://chromium-review.googlesource.com/1144447 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/power.h')
-rw-r--r--include/power.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/power.h b/include/power.h
index 271b8add69..5d506a7646 100644
--- a/include/power.h
+++ b/include/power.h
@@ -139,6 +139,13 @@ int power_wait_signals_timeout(uint32_t want, int timeout);
void power_set_state(enum power_state new_state);
/**
+ * Set the low-level chipset power state.
+ *
+ * @return Current chipset power state
+ */
+enum power_state power_get_state(void);
+
+/**
* Chipset-specific initialization
*
* @return The state the chipset should start in. Usually POWER_G3, but may