From 5537ce7c2f85584652b396840988364dd0f22439 Mon Sep 17 00:00:00 2001 From: Zhixing Ma Date: Fri, 25 Jul 2025 12:46:32 -0700 Subject: [PATCH] mb/google/fatcat: Fix GPIO config for headphone jack detection This commit updates GPP_F17 (CODEC_INIT_N) configuration to fix an issue with the 3.5mm headphone jack on the I2S codec AIC not detecting headphone plug/unplug events. Specifically, we need to configure GPP_F17 to have interrupt capability, edge detection to detect plug and unplug events, and power state persistence. BUG=b:434208278 TEST=After booting to OS, plug and unplug a headphone to the I2S codec add-in card, headphone is getting detected. Change-Id: I1c662ec680d8175be5854c753ea1481d09afb561 Signed-off-by: Zhixing Ma Reviewed-on: https://review.coreboot.org/c/coreboot/+/88564 Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/mainboard/google/fatcat/variants/fatcat/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainboard/google/fatcat/variants/fatcat/gpio.c b/src/mainboard/google/fatcat/variants/fatcat/gpio.c index 4b6462a60e..d8dd67c034 100644 --- a/src/mainboard/google/fatcat/variants/fatcat/gpio.c +++ b/src/mainboard/google/fatcat/variants/fatcat/gpio.c @@ -270,7 +270,7 @@ static const struct pad_config gpio_table[] = { /* GPP_F13: THC_I2C1_SDA_TCH_PAD */ PAD_CFG_NF(GPP_F13, NONE, DEEP, NF8), /* GPP_F17: CODEC_INT_N */ - PAD_CFG_GPI(GPP_F17, NONE, DEEP), + PAD_CFG_GPI_INT(GPP_F17, NONE, PLTRST, EDGE_BOTH), /* GPP_F18: TCH_PAD_INT_N */ /* NOTE: require rework to switch from GPP_A13 to GPP_F18 */ PAD_CFG_GPI_APIC(GPP_F18, NONE, PLTRST, LEVEL, INVERT),