diff options
author | Mary Ruthven <mruthven@chromium.org> | 2022-04-27 13:00:03 -0500 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-04-27 22:10:36 +0000 |
commit | a8eb0e2e9cc2ce105cfd9ba7eba0f11c0b21529a (patch) | |
tree | af660d39449d90c5a85488e6a31f71f8a46bb924 | |
parent | 822cee0013e48bfc6bab95aba17afb9477f1847e (diff) | |
download | chrome-ec-a8eb0e2e9cc2ce105cfd9ba7eba0f11c0b21529a.tar.gz |
rbox: use PWRB_IN to check power button state
Use the power button input to determine if the power button is pressed.
CHECK_OUTPUT_PWRB_OUT follows CHECK_INPUT_PWRB_IN, so they should be the
same. This switches to using the RBOX input since that is what cr50
should be using.
BUG=b:175320127
TEST=press the power button. Verify powerbtn output looks good.
Change-Id: Ie7f224489505366029450c98e341f3790192d49a
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3611615
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Commit-Queue: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | chip/g/rbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/rbox.c b/chip/g/rbox.c index 6aaa0206eb..41ce6bcbb5 100644 --- a/chip/g/rbox.c +++ b/chip/g/rbox.c @@ -30,7 +30,7 @@ void rbox_clear_wakeup(void) int rbox_powerbtn_is_pressed(void) { - return !GREAD_FIELD(RBOX, CHECK_OUTPUT, PWRB_OUT); + return !GREAD_FIELD(RBOX, CHECK_INPUT, PWRB_IN); } /* |