diff options
author | Robert Chen <robert.chen@quanta.corp-partner.google.com> | 2022-02-15 15:02:45 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-03-19 01:44:15 +0000 |
commit | 9b6e851e5be25bd5b71b6d86a0502ec48a7d9fce (patch) | |
tree | e6cbafdda9806ef1cdf4c4bd1dfae3769e95d48e /src/mainboard/google/dedede | |
parent | e9172a14f98805e06908519f9ccd53585587a463 (diff) |
mb/google/dedede/var/lantis: Add ELAN touchscreen support for Landrid
The touchscreen slave address for landrid is 0x10 same as lantis, so we use SSFC to switch touchscreen controller.
BUG=b:222976965
TEST=emerge-dedede coreboot
Change-Id: I23d3de5e45aa2876c1590a1e09679d652a3f2906
Signed-off-by: Robert Chen <robert.chen@quanta.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62002
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Diffstat (limited to 'src/mainboard/google/dedede')
-rw-r--r-- | src/mainboard/google/dedede/variants/lantis/overridetree.cb | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/mainboard/google/dedede/variants/lantis/overridetree.cb b/src/mainboard/google/dedede/variants/lantis/overridetree.cb index 3a9910b927..3ba85bd3b1 100644 --- a/src/mainboard/google/dedede/variants/lantis/overridetree.cb +++ b/src/mainboard/google/dedede/variants/lantis/overridetree.cb @@ -4,6 +4,11 @@ fw_config option AUDIO_CODEC_ALC5682 1 option AUDIO_CODEC_ALC5682I_VS 2 end + field TS_DRIVER_SOURCE 43 45 + option TS_UNPROVISIONED 0 + option TS_ELAN0001 1 + option TS_ELAN2513 2 + end end chip soc/intel/jasperlake @@ -176,7 +181,25 @@ chip soc/intel/jasperlake register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" register "enable_delay_ms" = "1" register "has_power_resource" = "1" - device i2c 10 on end + device i2c 10 on + probe TS_DRIVER_SOURCE TS_UNPROVISIONED + probe TS_DRIVER_SOURCE TS_ELAN0001 + end + end + chip drivers/i2c/hid + register "generic.hid" = ""ELAN2513"" + register "generic.desc" = ""ELAN Touchscreen"" + register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_D4_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D5)" + register "generic.reset_delay_ms" = "20" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" + register "generic.enable_delay_ms" = "1" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 10 on + probe TS_DRIVER_SOURCE TS_ELAN2513 + end end chip drivers/i2c/hid register "generic.hid" = ""GTCH7503"" |