From b3ad2aa3e7087484d532917b8c6b69f81abeb64d Mon Sep 17 00:00:00 2001 From: Varun Upadhyay Date: Thu, 4 Sep 2025 13:46:04 +0530 Subject: [PATCH] mb/google/ocelot: 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. TEST=After booting to OS, plug and unplug a headphone to the I2S codec add-in card, headphone is getting detected. Change-Id: I263f7e9e2da0440801404dddfcf534b9ea79d470 Signed-off-by: Varun Upadhyay Reviewed-on: https://review.coreboot.org/c/coreboot/+/89038 Tested-by: build bot (Jenkins) Reviewed-by: Usha P --- src/mainboard/google/ocelot/variants/ocelot/gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/ocelot/variants/ocelot/gpio.c b/src/mainboard/google/ocelot/variants/ocelot/gpio.c index 41c21a1b39..9da94aff9a 100644 --- a/src/mainboard/google/ocelot/variants/ocelot/gpio.c +++ b/src/mainboard/google/ocelot/variants/ocelot/gpio.c @@ -237,8 +237,8 @@ static const struct pad_config gpio_table[] = { PAD_CFG_NF(GPP_F15, NONE, DEEP, NF8), /* GPP_F16: GPP_F16_GSPI0A_CLK */ PAD_CFG_NF(GPP_F16, NONE, DEEP, NF8), - /* GPP_F17: CODEC_IRQ_HDR */ - PAD_CFG_GPI(GPP_F17, NONE, DEEP), + /* GPP_F17: CODEC_INT_N */ + PAD_CFG_GPI_INT(GPP_F17, NONE, PLTRST, EDGE_BOTH), /* GPP_F18: TCH_PAD_INT_N */ PAD_CFG_GPI_APIC_DRIVER(GPP_F18, NONE, PLTRST, EDGE_SINGLE, INVERT), /* GPP_F19: NC */