diff options
author | Tyler Wang <tyler.wang@quanta.corp-partner.google.com> | 2021-06-30 09:12:29 +0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-07-02 07:51:08 +0000 |
commit | de62f55507b6ca4f98df3edd75b57e73814c1f2d (patch) | |
tree | 936317c8e4b80b6d4bac61740d8d436996061249 /src/mainboard/google/dedede/variants | |
parent | f004a72af019fc838d18c8cf240cd015d32b70d3 (diff) |
mb/google/dedede/var/magolor: Enable G2 touchscreen for magma
Add G2 touchscreen support for magma.
BUG=b:189852808
TEST=Build and verify that touchscreen works.
Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com>
Change-Id: I3e032bff7f3e97f54f3e544035e862058ea0dbfc
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55976
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: David Wu <david_wu@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google/dedede/variants')
-rw-r--r-- | src/mainboard/google/dedede/variants/magolor/overridetree.cb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/magolor/overridetree.cb b/src/mainboard/google/dedede/variants/magolor/overridetree.cb index c533e0fa31..ef0dd2c3d6 100644 --- a/src/mainboard/google/dedede/variants/magolor/overridetree.cb +++ b/src/mainboard/google/dedede/variants/magolor/overridetree.cb @@ -11,6 +11,7 @@ fw_config option TS_ELAN_0001 3 option TS_RAYD_0001 4 option TS_WDHT0002 5 + option TS_GTCH7503 6 end end @@ -233,6 +234,23 @@ chip soc/intel/jasperlake probe TS_SOURCE TS_WDHT0002 end end + chip drivers/i2c/hid + register "generic.hid" = ""GTCH7503"" + register "generic.desc" = ""G2 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.reset_delay_ms" = "120" + register "generic.reset_off_delay_ms" = "3" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" + register "generic.enable_delay_ms" = "12" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 0x40 on + probe TS_SOURCE TS_UNPROVISIONED + probe TS_SOURCE TS_GTCH7503 + end + end chip drivers/i2c/generic register "hid" = ""ELAN0001"" register "desc" = ""ELAN Touchscreen"" |