diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2018-07-19 16:04:37 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-25 19:45:30 -0700 |
commit | 1241107ff7de1e18f80cd83d93a6cb1dc09134a3 (patch) | |
tree | 0936b2165bb1f03156ff97cdade0c3601ab67a89 /power/common.c | |
parent | d64a0c69a99c494724db250c8af51ec93706c73e (diff) | |
download | chrome-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 'power/common.c')
-rw-r--r-- | power/common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/power/common.c b/power/common.c index 68b8b896aa..f52416c93f 100644 --- a/power/common.c +++ b/power/common.c @@ -209,6 +209,11 @@ void power_set_state(enum power_state new_state) want_g3_exit = 0; } +enum power_state power_get_state(void) +{ + return state; +} + #ifdef CONFIG_HOSTCMD_X86 /* If host doesn't program s0ix lazy wake mask, use default s0ix mask */ |