summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorWisley Chen <wisley.chen@quanta.corp-partner.google.com>2021-09-11 12:22:28 +0600
committerTim Wawrzynczak <twawrzynczak@chromium.org>2021-09-16 20:48:27 +0000
commita398be98313246866a14f9a0af5e56bae233aaf9 (patch)
treeedd23744f33db324655e2acb1452d7f94a2ef952 /src/mainboard
parent093ac930322371a2d5cac5c262f1a95288653aa7 (diff)
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 <wisley.chen@quanta.corp-partner.google.com> Change-Id: I15781c2d942d81e11c296ea2f2586ba82f67e4a7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/57575 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/brya/variants/redrix/overridetree.cb19
1 files changed, 18 insertions, 1 deletions
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