diff options
author | Eran Mitrani <mitrani@google.com> | 2023-06-01 10:02:06 -0700 |
---|---|---|
committer | Subrata Banik <subratabanik@google.com> | 2023-06-06 04:41:27 +0000 |
commit | 14e215b241dde011dd52f6142b1051ac366ba0ea (patch) | |
tree | b0910c500dce361c6d9d87109dda8f8ce08d5732 /src | |
parent | 12a4f091e74bcee3724ec5a8639683d7667ebd50 (diff) |
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 <mitrani@google.com>
Change-Id: I0bee176298fddd2aee35cf084db037a3ce7672f7
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75565
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/rex/variants/rex0/overridetree.cb | 4 |
1 files changed, 3 insertions, 1 deletions
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"" |