diff options
author | Deepti Deshatty <deepti.deshatty@intel.com> | 2021-05-12 16:09:07 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-05-14 08:57:57 +0000 |
commit | 8386e7cd5bf763c281c0b25e6de127c289766de5 (patch) | |
tree | 093bce18f5919e066d34c65ef7c6412861b1a3d3 | |
parent | f35be77ee36b7c591e28c905cd83acb6593f954a (diff) |
soc/intel/alderlake: Add known CPU Port IDs for GPIO communities
Change-Id: Id5fa5b10edeb3445a2d2453d9122376041577598
Signed-off-by: Deepti Deshatty <deepti.deshatty@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/54087
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
-rw-r--r-- | src/soc/intel/alderlake/gpio.c | 5 | ||||
-rw-r--r-- | src/soc/intel/alderlake/include/soc/pcr_ids.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/soc/intel/alderlake/gpio.c b/src/soc/intel/alderlake/gpio.c index ef6f6e416b..25f8a3ca44 100644 --- a/src/soc/intel/alderlake/gpio.c +++ b/src/soc/intel/alderlake/gpio.c @@ -69,6 +69,7 @@ static const struct pad_group adl_community5_groups[] = { static const struct pad_community adl_communities[] = { [COMM_0] = { /* GPP B, T, A */ .port = PID_GPIOCOM0, + .cpu_port = PID_CPU_GPIOCOM0, .first_pad = GPIO_COM0_START, .last_pad = GPIO_COM0_END, .num_gpi_regs = NUM_GPIO_COM0_GPI_REGS, @@ -88,6 +89,7 @@ static const struct pad_community adl_communities[] = { }, [COMM_1] = { /* GPP S, D, H */ .port = PID_GPIOCOM1, + .cpu_port = PID_CPU_GPIOCOM1, .first_pad = GPIO_COM1_START, .last_pad = GPIO_COM1_END, .num_gpi_regs = NUM_GPIO_COM1_GPI_REGS, @@ -126,6 +128,7 @@ static const struct pad_community adl_communities[] = { }, [COMM_3] = { /* vGPIO */ .port = PID_GPIOCOM3, + .cpu_port = PID_CPU_GPIOCOM3, .first_pad = GPIO_COM3_START, .last_pad = GPIO_COM3_END, .num_gpi_regs = NUM_GPIO_COM3_GPI_REGS, @@ -145,6 +148,7 @@ static const struct pad_community adl_communities[] = { }, [COMM_4] = { /* GPP F, C, HVMOS, E */ .port = PID_GPIOCOM4, + .cpu_port = PID_CPU_GPIOCOM4, .first_pad = GPIO_COM4_START, .last_pad = GPIO_COM4_END, .num_gpi_regs = NUM_GPIO_COM4_GPI_REGS, @@ -164,6 +168,7 @@ static const struct pad_community adl_communities[] = { }, [COMM_5] = { /* GPP R, SPI0 */ .port = PID_GPIOCOM5, + .cpu_port = PID_CPU_GPIOCOM5, .first_pad = GPIO_COM5_START, .last_pad = GPIO_COM5_END, .num_gpi_regs = NUM_GPIO_COM5_GPI_REGS, diff --git a/src/soc/intel/alderlake/include/soc/pcr_ids.h b/src/soc/intel/alderlake/include/soc/pcr_ids.h index e4a29c4525..9ea075a78e 100644 --- a/src/soc/intel/alderlake/include/soc/pcr_ids.h +++ b/src/soc/intel/alderlake/include/soc/pcr_ids.h @@ -33,6 +33,12 @@ #define PID_ITSS 0xc4 #define PID_SERIALIO 0xcb +/* CPU Port IDs */ +#define PID_CPU_GPIOCOM0 0xb7 +#define PID_CPU_GPIOCOM1 0xb8 +#define PID_CPU_GPIOCOM3 0xbb +#define PID_CPU_GPIOCOM4 0xb9 +#define PID_CPU_GPIOCOM5 0xba /* * SPI - DMI Destination ID |