mb/google/dedede/var/galtic: Add fw_config probe for 2nd touchscreen

For galnat platform, support 2nd ELAN touchscreen via SSFC.
Define FW_CONFIG bits 39 - 40 (SSFC bits 7-8)
for touchscreen controller switch.

BUG=b:221002826
TEST=touch screen is functional.

Signed-off-by: Frank Chu <Frank_Chu@pegatron.corp-partner.google.com>
Change-Id: Id3501205b147c9dc3c96ce8381a3e7492ae8258e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62315
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Frank Chu <frank_chu@pegatron.corp-partner.google.com>
Reviewed-by: Ivan Chen <yulunchen@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
Frank Chu 2022-02-24 10:39:19 +08:00 committed by Karthik Ramasubramanian
parent 5e6fd360de
commit 1ab50fd5d5
1 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,11 @@
fw_config
field TOUCHSCREEN_SOURCE 39 40
option TOUCHSCREEN_UNPROVISIONED 0
option TOUCHSCREEN_ELAN1001 1
option TOUCHSCREEN_ELAN9008 2
end
end
fw_config fw_config
field AUDIO_CODEC_SOURCE 41 43 field AUDIO_CODEC_SOURCE 41 43
option AUDIO_CODEC_UNPROVISIONED 0 option AUDIO_CODEC_UNPROVISIONED 0
@ -165,7 +173,27 @@ 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 TOUCHSCREEN_SOURCE TOUCHSCREEN_ELAN1001
probe TOUCHSCREEN_SOURCE TOUCHSCREEN_UNPROVISIONED
end
end
chip drivers/i2c/hid
register "generic.hid" = ""ELAN9008""
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_LOW(GPP_D5)"
register "generic.enable_gpio" =
"ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)"
register "generic.enable_delay_ms" = "7"
register "generic.reset_delay_ms" = "70"
register "generic.has_power_resource" = "1"
register "hid_desc_reg_offset" = "0x01"
device i2c 10 on
probe TOUCHSCREEN_SOURCE TOUCHSCREEN_ELAN9008
end
end end
end # I2C 2 end # I2C 2
device pci 19.0 on device pci 19.0 on