From 14e215b241dde011dd52f6142b1051ac366ba0ea Mon Sep 17 00:00:00 2001 From: Eran Mitrani Date: Thu, 1 Jun 2023 10:02:06 -0700 Subject: mb/google/rex/var/rex0: probe for i2c1 touchscreen Touchscreen may either use I2C1 or SPI0. FW_CONFIG.TOUCHSCREEN is set to determine which is used. This CL adds a probe to enable I2C1. BUG=b:278783755 TEST=Tested on rex, confimed i2c1 is disabled when TOUCHSCREEN != TOUCHSCREEN_I2C Signed-off-by: Eran Mitrani Change-Id: I0bee176298fddd2aee35cf084db037a3ce7672f7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75565 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Eric Lai --- src/mainboard/google/rex/variants/rex0/overridetree.cb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainboard/google/rex/variants/rex0/overridetree.cb b/src/mainboard/google/rex/variants/rex0/overridetree.cb index 39a0a4d2a5..d67794e6f8 100644 --- a/src/mainboard/google/rex/variants/rex0/overridetree.cb +++ b/src/mainboard/google/rex/variants/rex0/overridetree.cb @@ -553,7 +553,9 @@ chip soc/intel/meteorlake register "generic.stop_off_delay_ms" = "2" register "generic.has_power_resource" = "1" register "hid_desc_reg_offset" = "0x01" - device i2c 10 on end + device i2c 10 on + probe TOUCHSCREEN TOUCHSCREEN_I2C + end end chip drivers/generic/gpio_keys register "name" = ""PENH"" -- cgit v1.2.3