diff options
author | Icenowy Zheng <icenowy@aosc.io> | 2018-06-23 00:06:31 +0800 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-06-25 19:08:58 +0200 |
commit | 48f3e7bf38db6603bf88ef889ade8df408d81cc4 (patch) | |
tree | c72fc30ea197a9c19d4e6194c16ad2e48a164b0a /arch/arm64/boot | |
parent | e4357c82e3a6e3e7142d0ea17c874e2d0bd623d4 (diff) | |
download | op-kernel-dev-48f3e7bf38db6603bf88ef889ade8df408d81cc4.zip op-kernel-dev-48f3e7bf38db6603bf88ef889ade8df408d81cc4.tar.gz |
arm64: allwinner: a64: allow laptops to wake up from lid
Currently all ARM kernels will have s2idle enabled if CONFIG_SUSPEND is
present. In this case if the lid is closed, systemd-logind will enter
s2idle mode by default; however there's no possible wakeup source
defined, so the system will enter a forever idle.
Add the lid itself as a wakeup source, thus the system can wakeup when
the lid is opened.
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Diffstat (limited to 'arch/arm64/boot')
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 1 | ||||
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts index 58253d6..e6e5bf1 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts @@ -49,6 +49,7 @@ linux,input-type = <EV_SW>; linux,code = <SW_LID>; linux,can-disable; + wakeup-source; }; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts index 02fecc4..33f78e7 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -38,6 +38,7 @@ gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */ linux,input-type = <EV_SW>; linux,code = <SW_LID>; + wakeup-source; }; }; |