From 78881e1006df9312edcca8659b8cf820a302686a Mon Sep 17 00:00:00 2001 From: Eran Mitrani Date: Tue, 2 May 2023 16:00:43 -0700 Subject: [PATCH] mb/google/rex: Add FW_CONFIG for TOUCH over SPI TEST=set the corresponding cbi bit, and saw SPI0 under sysfs BUG=b:278783755 Signed-off-by: Eran Mitrani Change-Id: I7099cde14cff90ad63e9164769f9913a8284a805 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74888 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Wonkyu Kim Reviewed-by: Kapil Porwal --- src/mainboard/google/rex/variants/rex0/overridetree.cb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/rex/variants/rex0/overridetree.cb b/src/mainboard/google/rex/variants/rex0/overridetree.cb index 84a0b6a4df..d3062adff8 100644 --- a/src/mainboard/google/rex/variants/rex0/overridetree.cb +++ b/src/mainboard/google/rex/variants/rex0/overridetree.cb @@ -42,6 +42,10 @@ fw_config option WIFI_CNVI 0 option WIFI_PCIE 1 end + field TOUCHSCREEN 19 + option TOUCHSCREEN_I2C 0 + option TOUCHSCREEN_I2C_SPI 1 + end end chip soc/intel/meteorlake @@ -75,7 +79,7 @@ chip soc/intel/meteorlake }" register "serial_io_gspi_mode" = "{ - [PchSerialIoIndexGSPI0] = PchSerialIoDisabled, + [PchSerialIoIndexGSPI0] = PchSerialIoPci, [PchSerialIoIndexGSPI1] = PchSerialIoPci, [PchSerialIoIndexGSPI2] = PchSerialIoDisabled, }" @@ -705,6 +709,9 @@ chip soc/intel/meteorlake end probe DB_SD SD_GL9755S end + device ref gspi0 on + probe TOUCHSCREEN TOUCHSCREEN_I2C_SPI + end device ref gspi1 on chip drivers/spi/acpi register "name" = ""CRFP""