From 53105a52267bbb10d05b7ae441667a2403bc6dc9 Mon Sep 17 00:00:00 2001 From: Kapil Porwal Date: Thu, 8 Sep 2022 22:52:49 -0700 Subject: mb/google/rex: Enable touchpad Enable touchpad for Google Rex. BUG=b:245866939 TEST=Build and boot to Google Rex. Verify touchpad works. Signed-off-by: Kapil Porwal Change-Id: I49fdd72bf3350085e82411b95edcd6a9a09d2df5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67471 Reviewed-by: Tarun Tuli Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Shaunak Saha --- src/mainboard/google/rex/Kconfig | 1 + src/mainboard/google/rex/variants/rex0/overridetree.cb | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/mainboard') diff --git a/src/mainboard/google/rex/Kconfig b/src/mainboard/google/rex/Kconfig index 367cf091ac..bda753bbd6 100644 --- a/src/mainboard/google/rex/Kconfig +++ b/src/mainboard/google/rex/Kconfig @@ -3,6 +3,7 @@ config BOARD_GOOGLE_REX_COMMON # FIXME: Rex Proto 0 only has 64MB SPINOR mounted on the board, # and the plan is to use 32MB later with Proto 1 onwards. select BOARD_ROMSIZE_KB_65536 + select DRIVERS_I2C_GENERIC select EC_GOOGLE_CHROMEEC select EC_GOOGLE_CHROMEEC_BOARDID select EC_GOOGLE_CHROMEEC_ESPI diff --git a/src/mainboard/google/rex/variants/rex0/overridetree.cb b/src/mainboard/google/rex/variants/rex0/overridetree.cb index 417d47bf7a..1e877d36c1 100644 --- a/src/mainboard/google/rex/variants/rex0/overridetree.cb +++ b/src/mainboard/google/rex/variants/rex0/overridetree.cb @@ -201,7 +201,16 @@ chip soc/intel/meteorlake device ref i2c0 on end device ref i2c1 on end device ref i2c2 on end - device ref i2c3 on end + device ref i2c3 on + chip drivers/i2c/generic + register "hid" = ""ELAN0000"" + register "desc" = ""ELAN Touchpad"" + register "irq" = "ACPI_IRQ_WAKE_LEVEL_LOW(GPP_B00_IRQ)" + register "wake" = "GPE0_DW0_00" + register "detect" = "1" + device i2c 15 on end + end + end device ref sata on end device ref i2c4 on chip drivers/i2c/tpm -- cgit v1.2.3