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 <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/87450 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com>
This commit is contained in:
parent
2e387e13f5
commit
c0920396d0
2 changed files with 10 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@
|
|||
#include <gpio.h>
|
||||
|
||||
#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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue