diff options
author | Jeremy Soller <jeremy@system76.com> | 2021-02-10 10:16:28 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-02-27 09:38:19 +0000 |
commit | 89cd52a65a39828123e677be2c658be0d89a0120 (patch) | |
tree | 681ff9a8c7ce583289fba2502ac6c76f84906860 /src/ec/system76 | |
parent | 7a8b3b58c440bad8d978d986cc9c527ea5420f72 (diff) |
ec/system76/ec: Add OLED screen toggle
Change-Id: I667accd980da6384a7cc6a3f4eb7565b8b3b2400
Signed-off-by: Jeremy Soller <jeremy@system76.com>
Signed-off-by: Tim Crawford <tcrawford@system76.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/50490
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/ec/system76')
-rw-r--r-- | src/ec/system76/ec/Kconfig | 5 | ||||
-rw-r--r-- | src/ec/system76/ec/acpi/ec.asl | 3 | ||||
-rw-r--r-- | src/ec/system76/ec/acpi/s76.asl | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/ec/system76/ec/Kconfig b/src/ec/system76/ec/Kconfig index 8c9030e599..e9b8091f39 100644 --- a/src/ec/system76/ec/Kconfig +++ b/src/ec/system76/ec/Kconfig @@ -12,3 +12,8 @@ config EC_SYSTEM76_EC_COLOR_KEYBOARD depends on EC_SYSTEM76_EC bool default n + +config EC_SYSTEM76_EC_OLED + depends on EC_SYSTEM76_EC + bool + default n diff --git a/src/ec/system76/ec/acpi/ec.asl b/src/ec/system76/ec/acpi/ec.asl index 612c358e08..b24137ca4f 100644 --- a/src/ec/system76/ec/acpi/ec.asl +++ b/src/ec/system76/ec/acpi/ec.asl @@ -104,6 +104,9 @@ Device (\_SB.PCI0.LPCB.EC0) Method (_Q0B, 0, NotSerialized) // Screen Toggle { Debug = "EC: Screen Toggle" +#if CONFIG(EC_SYSTEM76_EC_OLED) + Notify (^^^^S76D, 0x85) +#endif // CONFIG(EC_SYSTEM76_EC_OLED) } Method (_Q0C, 0, NotSerialized) // Mute diff --git a/src/ec/system76/ec/acpi/s76.asl b/src/ec/system76/ec/acpi/s76.asl index a2bb310938..62a93bab3d 100644 --- a/src/ec/system76/ec/acpi/s76.asl +++ b/src/ec/system76/ec/acpi/s76.asl @@ -6,6 +6,7 @@ // 0x82 - backlight down // 0x83 - backlight up // 0x84 - backlight color change +// 0x85 - OLED screen toggle Device (S76D) { Name (_HID, "17761776") Name (_UID, 0) |