summaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2021-11-12 11:33:20 +0800
committerWerner Zeh <werner.zeh@siemens.com>2021-11-15 10:07:29 +0000
commit91c3ace5af5c0db5512554370bfbabe6b693156d (patch)
tree8fe41a2dbc7fadd812bb3287c1b01324d9116dc6 /src/mainboard/google
parent6bc300d8d5eeec4315fe25c78b5ac535e7a4a907 (diff)
mb/google/brya/var/felwinter: Enable garage pen detection
Enable garage pen detection. BUG=b:197912223 TEST=Check evtest can trigger event when toggling the switch. Signed-off-by: Eric Lai <ericr_lai@compal.corp-partner.google.com> Change-Id: Ib5929c876d1a0da34dadd7997a61ab8e75acbbb6 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59234 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/brya/Kconfig.name1
-rw-r--r--src/mainboard/google/brya/variants/felwinter/overridetree.cb12
2 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/Kconfig.name b/src/mainboard/google/brya/Kconfig.name
index bd8cf6f7f6..4afee7423b 100644
--- a/src/mainboard/google/brya/Kconfig.name
+++ b/src/mainboard/google/brya/Kconfig.name
@@ -60,6 +60,7 @@ config BOARD_GOOGLE_TAEKO
config BOARD_GOOGLE_FELWINTER
bool "-> Felwinter"
select BOARD_GOOGLE_BASEBOARD_BRYA
+ select DRIVERS_GENERIC_GPIO_KEYS
config BOARD_GOOGLE_ANAHERA
bool "-> Anahera"
diff --git a/src/mainboard/google/brya/variants/felwinter/overridetree.cb b/src/mainboard/google/brya/variants/felwinter/overridetree.cb
index 46475519fb..8420452c46 100644
--- a/src/mainboard/google/brya/variants/felwinter/overridetree.cb
+++ b/src/mainboard/google/brya/variants/felwinter/overridetree.cb
@@ -101,6 +101,18 @@ chip soc/intel/alderlake
register "hid_desc_reg_offset" = "0x01"
device i2c 10 on end
end
+ chip drivers/generic/gpio_keys
+ register "name" = ""PENH""
+ register "gpio" = "ACPI_GPIO_IRQ_EDGE_BOTH(GPP_A7)"
+ register "key.wake_gpe" = "GPE0_DW0_08"
+ register "key.wakeup_route" = "WAKEUP_ROUTE_SCI"
+ register "key.wakeup_event_action" = "EV_ACT_DEASSERTED"
+ register "key.dev_name" = ""EJCT""
+ register "key.linux_code" = "SW_PEN_INSERTED"
+ register "key.linux_input_type" = "EV_SW"
+ register "key.label" = ""pen_eject""
+ device generic 0 on end
+ end
end
device ref i2c3 on end
device ref i2c5 on