From c0920396d04f7b0369ee1ba9d3a02984bc599a7d Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 25 Apr 2025 12:51:01 +0530 Subject: [PATCH] mb/google/bluey: Make GSC_AP_INT GPIO configurable via Kconfig This commit introduces a Kconfig option to define the GPIO pin used for the Google Security Chip (GSC) to Application Processor (AP) interrupt on the Bluey mainboard. Previously, the GPIO_GSC_AP_INT was hardcoded to GPIO 34 in board.h. This change makes it configurable for any future variants using Qualcomm X1P-42-100 SoC. BUG=b:404985109 TEST=Successfully built google/bluey with the Qualcomm x1p42100 SoC. Change-Id: I5759667158082a80124bf3faa3c56aee50c1be34 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/87450 Tested-by: build bot (Jenkins) Reviewed-by: Kapil Porwal --- src/mainboard/google/bluey/Kconfig | 8 ++++++++ src/mainboard/google/bluey/board.h | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/bluey/Kconfig b/src/mainboard/google/bluey/Kconfig index 0746970bc5..5c74c81ac4 100644 --- a/src/mainboard/google/bluey/Kconfig +++ b/src/mainboard/google/bluey/Kconfig @@ -58,4 +58,12 @@ config EC_GOOGLE_CHROMEEC_SPI_BUS hex default 0xb +config MAINBOARD_GPIO_PIN_FOR_GSC_AP_INTERRUPT + int + default 34 + help + This option specifies the GPIO pin number on the mainboard that is + used for the interrupt line from the Google Security Chip (GSC) to the + Application Processor (AP). + endif # BOARD_GOOGLE_BLUEY_COMMON diff --git a/src/mainboard/google/bluey/board.h b/src/mainboard/google/bluey/board.h index f7c4f23d91..618eadce2a 100644 --- a/src/mainboard/google/bluey/board.h +++ b/src/mainboard/google/bluey/board.h @@ -7,7 +7,8 @@ #include #define GPIO_AP_EC_INT GPIO(67) -#define GPIO_GSC_AP_INT GPIO(34) +#define GSC_AP_INT(x) GPIO(x) +#define GPIO_GSC_AP_INT GSC_AP_INT(CONFIG_MAINBOARD_GPIO_PIN_FOR_GSC_AP_INTERRUPT) void setup_chromeos_gpios(void);