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>
This commit is contained in:
Robert Chen 2022-02-15 15:02:45 +08:00 committed by Felix Held
parent e9172a14f9
commit 9b6e851e5b
1 changed files with 24 additions and 1 deletions

View File

@ -4,6 +4,11 @@ fw_config
option AUDIO_CODEC_ALC5682 1 option AUDIO_CODEC_ALC5682 1
option AUDIO_CODEC_ALC5682I_VS 2 option AUDIO_CODEC_ALC5682I_VS 2
end end
field TS_DRIVER_SOURCE 43 45
option TS_UNPROVISIONED 0
option TS_ELAN0001 1
option TS_ELAN2513 2
end
end end
chip soc/intel/jasperlake chip soc/intel/jasperlake
@ -176,7 +181,25 @@ chip soc/intel/jasperlake
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
register "enable_delay_ms" = "1" register "enable_delay_ms" = "1"
register "has_power_resource" = "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 end
chip drivers/i2c/hid chip drivers/i2c/hid
register "generic.hid" = ""GTCH7503"" register "generic.hid" = ""GTCH7503""