soc/intel/meteorlake: Add CPU PortID for GPIO Community

Add CPU PortID for GPIO communities in order to calculate
IOM Aux Bias data correctly.

BUG=b:283044004
TEST=able to detect external display

Signed-off-by: Marx Wang <marx.wang@intel.com>
Change-Id: I79f27fb0b6bde0a4ce2466eaf707166a952fad81
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75390
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Reviewed-by: Tarun Tuli <taruntuli@google.com>
This commit is contained in:
Marx Wang 2023-05-23 10:59:59 +08:00 committed by Sridhar Siricilla
parent 124c57a5c5
commit 00d9107e02
1 changed files with 5 additions and 0 deletions

View File

@ -75,6 +75,7 @@ static const struct vw_entries mtl_community5_vw[] = {
static const struct pad_community mtl_communities[] = { static const struct pad_community mtl_communities[] = {
[COMM_0] = { /* GPP CPU, V, C */ [COMM_0] = { /* GPP CPU, V, C */
.port = PID_GPIOCOM0, .port = PID_GPIOCOM0,
.cpu_port = PID_GPIOCOM0,
.first_pad = GPIO_COM0_START, .first_pad = GPIO_COM0_START,
.last_pad = GPIO_COM0_END, .last_pad = GPIO_COM0_END,
.num_gpi_regs = NUM_GPIO_COM0_GPI_REGS, .num_gpi_regs = NUM_GPIO_COM0_GPI_REGS,
@ -102,6 +103,7 @@ static const struct pad_community mtl_communities[] = {
}, },
[COMM_1] = { /* GPP A, E */ [COMM_1] = { /* GPP A, E */
.port = PID_GPIOCOM1, .port = PID_GPIOCOM1,
.cpu_port = PID_GPIOCOM1,
.first_pad = GPIO_COM1_START, .first_pad = GPIO_COM1_START,
.last_pad = GPIO_COM1_END, .last_pad = GPIO_COM1_END,
.num_gpi_regs = NUM_GPIO_COM1_GPI_REGS, .num_gpi_regs = NUM_GPIO_COM1_GPI_REGS,
@ -129,6 +131,7 @@ static const struct pad_community mtl_communities[] = {
}, },
[COMM_3] = { /* GPP H, F, SPI0, VGPIO3 */ [COMM_3] = { /* GPP H, F, SPI0, VGPIO3 */
.port = PID_GPIOCOM3, .port = PID_GPIOCOM3,
.cpu_port = PID_GPIOCOM3,
.first_pad = GPIO_COM3_START, .first_pad = GPIO_COM3_START,
.last_pad = GPIO_COM3_END, .last_pad = GPIO_COM3_END,
.num_gpi_regs = NUM_GPIO_COM3_GPI_REGS, .num_gpi_regs = NUM_GPIO_COM3_GPI_REGS,
@ -152,6 +155,7 @@ static const struct pad_community mtl_communities[] = {
}, },
[COMM_4] = { /* GPP S, JTAG */ [COMM_4] = { /* GPP S, JTAG */
.port = PID_GPIOCOM4, .port = PID_GPIOCOM4,
.cpu_port = PID_GPIOCOM4,
.first_pad = GPIO_COM4_START, .first_pad = GPIO_COM4_START,
.last_pad = GPIO_COM4_END, .last_pad = GPIO_COM4_END,
.num_gpi_regs = NUM_GPIO_COM4_GPI_REGS, .num_gpi_regs = NUM_GPIO_COM4_GPI_REGS,
@ -172,6 +176,7 @@ static const struct pad_community mtl_communities[] = {
}, },
[COMM_5] = { /* GPP B, D, VGPIO */ [COMM_5] = { /* GPP B, D, VGPIO */
.port = PID_GPIOCOM5, .port = PID_GPIOCOM5,
.cpu_port = PID_GPIOCOM5,
.first_pad = GPIO_COM5_START, .first_pad = GPIO_COM5_START,
.last_pad = GPIO_COM5_END, .last_pad = GPIO_COM5_END,
.num_gpi_regs = NUM_GPIO_COM5_GPI_REGS, .num_gpi_regs = NUM_GPIO_COM5_GPI_REGS,