Kun Liu has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/83139?usp=email )
Change subject: lotso: Add hid report address for gt7986u ......................................................................
lotso: Add hid report address for gt7986u
Add hid report address for gt7986u
BUG=b:342932183 BRANCH=None TEST=Verify touchscreen work normal
Change-Id: I8b18e0a2925e6fd36e3a470bde9910661b7558b8 Signed-off-by: Kun Liu liukun11@huaqin.corp-partner.google.com --- M src/drivers/spi/acpi/acpi.c M src/drivers/spi/acpi/chip.h M src/mainboard/google/brox/variants/lotso/overridetree.cb 3 files changed, 8 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/39/83139/1
diff --git a/src/drivers/spi/acpi/acpi.c b/src/drivers/spi/acpi/acpi.c index 6d92776..23acdfe 100644 --- a/src/drivers/spi/acpi/acpi.c +++ b/src/drivers/spi/acpi/acpi.c @@ -131,7 +131,7 @@
/* Write device properties if needed */ if (config->compat_string || irq_gpio_index >= 0 || - reset_gpio_index >= 0 || enable_gpio_index >= 0) { + reset_gpio_index >= 0 || enable_gpio_index >= 0 || config->hid_report_addr) { struct acpi_dp *dsd = acpi_dp_new_table("_DSD"); if (config->compat_string) acpi_dp_add_string(dsd, "compatible", @@ -148,6 +148,10 @@ acpi_dp_add_gpio(dsd, "enable-gpios", path, enable_gpio_index, 0, config->enable_gpio.active_low); + if (config->hid_report_addr) + acpi_dp_add_integer(dsd, "goodix,hid-report-addr", + config->hid_report_addr); + acpi_dp_write(dsd); }
diff --git a/src/drivers/spi/acpi/chip.h b/src/drivers/spi/acpi/chip.h index 9bee847..84eec37 100644 --- a/src/drivers/spi/acpi/chip.h +++ b/src/drivers/spi/acpi/chip.h @@ -42,6 +42,8 @@ unsigned int stop_delay_ms; /* Delay to be inserted after enabling stop. */ unsigned int stop_off_delay_ms; + /* hid report address for touchscreen. */ + uint32_t hid_report_addr; };
#endif /* __SPI_ACPI_CHIP_H__ */ diff --git a/src/mainboard/google/brox/variants/lotso/overridetree.cb b/src/mainboard/google/brox/variants/lotso/overridetree.cb index 274e22c..411446f 100644 --- a/src/mainboard/google/brox/variants/lotso/overridetree.cb +++ b/src/mainboard/google/brox/variants/lotso/overridetree.cb @@ -371,6 +371,7 @@ register "speed" = "10 * MHz" register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_F17)" register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_F7)" + register "hid_report_addr" = "0x22c8c" device spi 0 on end end # touchscreen end