mb/google/fatcat/var/lapis: Enable THC HID over I2C mode

Configure the Touch Host Controller (THC) devices 0 and 1 on the
Fatcat/Lapis variant to use HID over I2C mode.

This change explicitly sets the thc_mode[0] and thc_mode[1] registers
to THC_HID_I2C_MODE in overridetree.cb. This is necessary to correctly
initialize the THC for devices like touchpads or touchscreens that
communicate using this protocol.

BUG=b:455442712
TEST=Able to build and boot google/lapis with functional touchpad.

Change-Id: I7c9a62afab396cb38775eaa5e96f2dc7ed773216
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89818
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Pranava Y N <pranavayn@google.com>
Reviewed-by: Huang, Cliff <cliff.huang@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Subrata Banik 2025-10-30 11:43:53 +05:30
commit 4ea33e5ffa

View file

@ -406,6 +406,7 @@ chip soc/intel/pantherlake
device ref thc0 on
register "thc_wake_on_touch[0]" = "true"
register "thc_mode[0]" = "THC_HID_I2C_MODE"
# THC0 is function 0; hence it needs to be enabled when THC1 is to be enabled.
chip drivers/intel/touch
register "name" = "INTEL_THC0_NAME"
@ -424,6 +425,7 @@ chip soc/intel/pantherlake
end #Touchpad
device ref thc1 on
register "thc_wake_on_touch[1]" = "true"
register "thc_mode[1]" = "THC_HID_I2C_MODE"
chip drivers/intel/touch
register "name" = "INTEL_THC1_NAME"
register "mode" = "THC_HID_I2C_MODE"