From 7afe1e9f9d7224d39313ed5edf38ac5c1119a8dd Mon Sep 17 00:00:00 2001 From: Hualin Wei Date: Thu, 27 Nov 2025 10:45:36 +0800 Subject: [PATCH] mb/google/fatcat/var/lapis: Adjust touchpanel power on timing GPP_F08 -> EN_TCHSCR_PWR GPP_F16 -> TOUCHPANEL_RESET# Adjust touchpanel's power on timings: 1. EN_TCHSCR_PWR go high before L_VDDEN_PCH during power on 2. TOUCHPANEL_RESET# high after EN_TCHSCR_PWR high when power on BUG=b:462913972 TEST=emerge-fatcat coreboot the EE measured the power-on timing of the touchscreen, and it met the requirements. Change-Id: I4e50223477003ff93d4751527196894cc0a3e781 Signed-off-by: Hualin Wei Reviewed-on: https://review.coreboot.org/c/coreboot/+/90243 Reviewed-by: Weimin Wu Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/mainboard/google/fatcat/variants/lapis/gpio.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/fatcat/variants/lapis/gpio.c b/src/mainboard/google/fatcat/variants/lapis/gpio.c index 92d63a9e90..1f3e25dcc6 100644 --- a/src/mainboard/google/fatcat/variants/lapis/gpio.c +++ b/src/mainboard/google/fatcat/variants/lapis/gpio.c @@ -263,8 +263,6 @@ static const struct pad_config gpio_table[] = { PAD_NC(GPP_F06, NONE), /* GPP_F07: Not used */ PAD_NC(GPP_F07, NONE), - /* GPP_F08: TCHSCR_PWR_EN */ - PAD_CFG_GPO(GPP_F08, 1, DEEP), /* GPP_F09: NC */ PAD_NC(GPP_F09, NONE), /* GPP_F10: NC */ @@ -398,6 +396,9 @@ static const struct pad_config early_gpio_table[] = { /* GPP_E19: FP_PWR_EN */ PAD_CFG_GPO(GPP_E19, 1, PLTRST), + /* GPP_F16: THC0_SPI1_RST_N_TCH_PNL1 */ + PAD_CFG_GPO(GPP_F16, 0, DEEP), + /* GPP_H08: UART0_BUF_RXD */ PAD_CFG_NF(GPP_H08, NONE, DEEP, NF1), /* GPP_H09: UART0_BUF_TXD */ @@ -409,6 +410,9 @@ static const struct pad_config early_gpio_table[] = { PAD_CFG_NF(GPP_H07, NONE, DEEP, NF1), /* GPP_E02: GSC_SOC_INT_ODL */ PAD_CFG_GPI_APIC_LOCK(GPP_E02, NONE, LEVEL, INVERT, LOCK_CONFIG), + + /* GPP_F08: TCHSCR_PWR_EN */ + PAD_CFG_GPO(GPP_F08, 1, DEEP), }; /* Pad configuration in romstage */