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);