From 9be583e65d4ef16761feb38eb5c978bbfd8f630d Mon Sep 17 00:00:00 2001 From: Dtrain Hsu Date: Thu, 18 May 2023 17:32:01 +0800 Subject: mb/google/nissa/var/uldren: Add fw_config probe for touchpad Use fw_config to probe touchpad. BUG=b:283199751 BRANCH=firmware-nissa-15217.B TEST=emerge-nissa coreboot chromeos-bootimage Change-Id: Ib20abac74683c670c174821b821ede461dbb0163 Signed-off-by: Dtrain Hsu Reviewed-on: https://review.coreboot.org/c/coreboot/+/75336 Tested-by: build bot (Jenkins) Reviewed-by: Derek Huang --- src/mainboard/google/brya/variants/uldren/overridetree.cb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/brya/variants/uldren/overridetree.cb b/src/mainboard/google/brya/variants/uldren/overridetree.cb index fa20808e78..4f3dfe244e 100644 --- a/src/mainboard/google/brya/variants/uldren/overridetree.cb +++ b/src/mainboard/google/brya/variants/uldren/overridetree.cb @@ -1,4 +1,9 @@ fw_config + field TOUCHPAD 8 9 + option TOUCHPAD_UNKNOWN 0 + option TOUCHPAD_EKT3744 1 + option TOUCHPAD_GT7863 2 + end field TOUCHSCREEN 10 12 option TOUCHSCREEN_UNKNOWN 0 option TOUCHSCREEN_NONE 1 @@ -276,7 +281,10 @@ chip soc/intel/alderlake register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" register "wake" = "GPE0_DW2_14" register "detect" = "1" - device i2c 15 on end + device i2c 15 on + probe TOUCHPAD TOUCHPAD_UNKNOWN + probe TOUCHPAD TOUCHPAD_EKT3744 + end end chip drivers/i2c/hid register "generic.hid" = ""GXTP7863"" @@ -285,7 +293,10 @@ chip soc/intel/alderlake register "generic.wake" = "GPE0_DW2_14" register "generic.detect" = "1" register "hid_desc_reg_offset" = "0x20" - device i2c 2c on end + device i2c 2c on + probe TOUCHPAD TOUCHPAD_UNKNOWN + probe TOUCHPAD TOUCHPAD_GT7863 + end end end device ref hda on -- cgit v1.2.3