mb/google/bluey: Configure touchpad power GPIO

BUG=b:441716957
TEST=build quartz board

Change-Id: Icf9fea2c10a60b6aa798822f6d36f04f43608e9c
Signed-off-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89019
Reviewed-by: Subrata Banik <subratabanik@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kapil Porwal 2025-09-03 11:06:44 +05:30 committed by Matt DeVillier
commit 517185eca2
3 changed files with 15 additions and 0 deletions

View file

@ -143,6 +143,14 @@ config EC_GOOGLE_CHROMEEC_SPI_BUS
default 0xd if BOARD_GOOGLE_MODEL_QUARTZ
default 0xb
config MAINBOARD_GPIO_PIN_FOR_TOUCHPAD_POWER
int
default 36 if BOARD_GOOGLE_MODEL_QUARTZ
default 0
help
This option specifies the GPIO pin number on the mainboard that is
used for enabling power to the touchpad. Set it to 0 if unused.
config MAINBOARD_GPIO_PIN_FOR_GSC_AP_INTERRUPT
depends on TPM_GOOGLE_TI50
int

View file

@ -10,6 +10,9 @@
#define GSC_AP_INT(x) GPIO(x)
#define GPIO_GSC_AP_INT GSC_AP_INT(CONFIG_MAINBOARD_GPIO_PIN_FOR_GSC_AP_INTERRUPT)
#define TP_POWER_GPIO(x) GPIO(x)
#define GPIO_TP_POWER_EN TP_POWER_GPIO(CONFIG_MAINBOARD_GPIO_PIN_FOR_TOUCHPAD_POWER)
/* Fingerprint-specific GPIOs. Only for fingerprint-enabled devices. */
#if CONFIG(MAINBOARD_HAS_FINGERPRINT)
#define GPIO_FP_RST_L GPIO(25)

View file

@ -43,6 +43,10 @@ static void mainboard_init(struct device *dev)
if (CONFIG(MAINBOARD_HAS_FINGERPRINT_VIA_SPI))
qupv3_se_fw_load_and_init(QUPV3_2_SE2, SE_PROTOCOL_SPI, MIXED); /* Fingerprint SPI */
/* Enable touchpad power */
if (CONFIG_MAINBOARD_GPIO_PIN_FOR_TOUCHPAD_POWER)
gpio_output(GPIO_TP_POWER_EN, 1);
/*
* Deassert FPMCU reset. Power applied in romstage
* has now stabilized.