From a398be98313246866a14f9a0af5e56bae233aaf9 Mon Sep 17 00:00:00 2001 From: Wisley Chen Date: Sat, 11 Sep 2021 12:22:28 +0600 Subject: mb/google/brya/var/redrix: Add fw_config probe for eKT3764/eKT3644 Report different ACPI device depending on TP_SOURCE field of fw config (SSFC-bit8~bit9) for elan touchpad. BUG=b:199503876 TEST=FW_NAME=redrix emerge-brya coreboot Signed-off-by: Wisley Chen Change-Id: I15781c2d942d81e11c296ea2f2586ba82f67e4a7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57575 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- .../google/brya/variants/redrix/overridetree.cb | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/brya/variants/redrix/overridetree.cb b/src/mainboard/google/brya/variants/redrix/overridetree.cb index 67db30a4ad..ea922e0b2a 100644 --- a/src/mainboard/google/brya/variants/redrix/overridetree.cb +++ b/src/mainboard/google/brya/variants/redrix/overridetree.cb @@ -25,6 +25,10 @@ fw_config option CAMERA_OV5675 1 option CAMERA_HI556 2 end + field TP_SOURCE 40 41 + option ELAN0000 0 + option ELAN2703 1 + end end chip soc/intel/alderlake register "SaGv" = "SaGv_Enabled" @@ -364,7 +368,20 @@ chip soc/intel/alderlake register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" register "wake" = "GPE0_DW2_14" register "probed" = "1" - device i2c 15 on end + device i2c 15 on + probe TP_SOURCE ELAN0000 + end + end + chip drivers/i2c/hid + register "generic.hid" = ""ELAN2703"" + register "generic.desc" = ""ELAN Touchpad"" + register "generic.irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_F14_IRQ)" + register "generic.wake" = "GPE0_DW2_14" + register "generic.probed" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 15 on + probe TP_SOURCE ELAN2703 + end end end device ref gspi1 on -- cgit v1.2.3