summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEran Mitrani <mitrani@google.com>2023-05-02 16:00:43 -0700
committerSubrata Banik <subratabanik@google.com>2023-05-23 06:03:18 +0000
commit78881e1006df9312edcca8659b8cf820a302686a (patch)
treea251c33041dd10ba683334f95360667ed99f6508 /src
parenta398b311084c60b3ed31fdda93217780bc38a497 (diff)
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 <mitrani@google.com> Change-Id: I7099cde14cff90ad63e9164769f9913a8284a805 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74888 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/rex/variants/rex0/overridetree.cb9
1 files changed, 8 insertions, 1 deletions
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""