From 07d3668d9729e1fda079f0770aa9d9d10a0746b9 Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Wed, 18 May 2022 13:32:39 +0100 Subject: [PATCH] ec/starlabs/merlin/glk: Add Trackpad enable/disable Q events Add Q60 and Q61 events to disable or enable the trackpad. The support for this Q event was added in Star Labs EC version 1.11 Add Q events Q60 and Q61 which are bound to the F10 key. The event is select based on the value of 0x14, 0x11 will send Q60 and 0x22 will send Q61. Q60 will pull GPIO_177 to low, consequently disabling the trackpad and Q61 will reset it to the default configuration. Signed-off-by: Sean Rhodes Change-Id: I091b0eb268d4d6d2109559765be71e2746b85f54 Reviewed-on: https://review.coreboot.org/c/coreboot/+/64465 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/ec/starlabs/merlin/variants/glk/events.asl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ec/starlabs/merlin/variants/glk/events.asl b/src/ec/starlabs/merlin/variants/glk/events.asl index 2929421170..46aebe46bb 100644 --- a/src/ec/starlabs/merlin/variants/glk/events.asl +++ b/src/ec/starlabs/merlin/variants/glk/events.asl @@ -73,6 +73,18 @@ Method (_Q54, 0, NotSerialized) // Event: Power Button Press Printf ("EC: PWRBTN") } +Method (_Q60, 0, NotSerialized) // Event: Trackpad Enable +{ + Printf ("EC: Trackpad Enable") + SPC0 (0xD0C80610, 0x40800102) +} + +Method (_Q61, 0, NotSerialized) // Event: Trackpad Disable +{ + Printf ("EC: Trackpad Disable") + SPC0 (0xD0C80610, 0x40800200) +} + Method (_QF0, 0, NotSerialized) // Event: Temperature Report { Printf ("EC: Temperature Report")