diff options
author | Furquan Shaikh <furquan@chromium.org> | 2018-01-23 19:35:56 -0800 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2018-01-26 17:29:31 +0000 |
commit | a20e0b288b50107141fdfa10346900c1cf7ed748 (patch) | |
tree | 2c96a199b2dabd79a0acf8eef8f1561860a0a4e6 /src/ec/google/chromeec/acpi | |
parent | c141323c6263c9f3a884d4482369e8c91e9a713c (diff) |
ec/google/chromeec: Add _PRW property to CREC device
This change adds _PRW property to CREC device that allows Linux kernel
to identify CREC as a wakeup source.
BUG=b:69118395
TEST=Verified following steps:
1. Under sys devices for CREC: "echo enabled > wakeup"
2. Lid close/Lid open -- Verified that wakeup_count increases
3. Mode change -- Verified that wakeup_count increases
Change-Id: Ib0a687e171c7e5c81325b39f47c9a2462553fe3e
Signed-off-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: https://review.coreboot.org/23399
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Diffstat (limited to 'src/ec/google/chromeec/acpi')
-rw-r--r-- | src/ec/google/chromeec/acpi/cros_ec.asl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/acpi/cros_ec.asl b/src/ec/google/chromeec/acpi/cros_ec.asl index 7f3afea41a..b246fe33fa 100644 --- a/src/ec/google/chromeec/acpi/cros_ec.asl +++ b/src/ec/google/chromeec/acpi/cros_ec.asl @@ -18,6 +18,9 @@ Device (CREC) Name (_HID, "GOOG0004") Name (_UID, 1) Name (_DDN, "EC Command Device") +#ifdef EC_ENABLE_WAKE_PIN + Name (_PRW, Package () { EC_ENABLE_WAKE_PIN, 0x5 }) +#endif #ifdef EC_ENABLE_MKBP_DEVICE Device (CKSC) |