From 18172b600903cd9067283032615a6f14eeeb7e3f Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 25 Apr 2025 13:17:52 +0530 Subject: [PATCH] mb/google/bluey: Add SoundWire amp and SD card GPIOs to lb_gpios This commit updates the `fill_lb_gpios` function in `src/mainboard/google/bluey/chromeos.c` to include additional GPIO states for Chrome OS diagnostics. The following GPIOs are now reported: - GPIO_SNDW_AMP_0_ENABLE: "Speaker 0 enable" (active high) - GPIO_SNDW_AMP_1_ENABLE: "Speaker 1 enable" (active high) - GPIO_SD_CD_L: "SD card detect" (active low), reported conditionally if CONFIG_MAINBOARD_HAS_SD_CONTROLLER is enabled. BUG=b:404985109 TEST=Successfully built google/bluey with the Qualcomm x1p42100 SoC. Change-Id: I0063e8190571241edda64165b9ade9c4331a3499 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/87451 Tested-by: build bot (Jenkins) Reviewed-by: Jayvik Desai Reviewed-by: Paul Menzel --- src/mainboard/google/bluey/chromeos.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mainboard/google/bluey/chromeos.c b/src/mainboard/google/bluey/chromeos.c index aad0b0fea3..9fa8718e02 100644 --- a/src/mainboard/google/bluey/chromeos.c +++ b/src/mainboard/google/bluey/chromeos.c @@ -20,6 +20,14 @@ void fill_lb_gpios(struct lb_gpios *gpios) "EC interrupt"}, {GPIO_GSC_AP_INT.addr, ACTIVE_HIGH, gpio_get(GPIO_GSC_AP_INT), "TPM interrupt"}, + {GPIO_SNDW_AMP_0_ENABLE.addr, ACTIVE_HIGH, gpio_get(GPIO_SNDW_AMP_0_ENABLE), + "Speaker 0 enable"}, + {GPIO_SNDW_AMP_1_ENABLE.addr, ACTIVE_HIGH, gpio_get(GPIO_SNDW_AMP_1_ENABLE), + "Speaker 1 enable"}, +#if CONFIG(MAINBOARD_HAS_SD_CONTROLLER) + {GPIO_SD_CD_L.addr, ACTIVE_LOW, gpio_get(GPIO_SD_CD_L), + "SD card detect"}, +#endif }; lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));