From 00d9107e02b0327ae16eb2b08605d9942ae0ab18 Mon Sep 17 00:00:00 2001 From: Marx Wang Date: Tue, 23 May 2023 10:59:59 +0800 Subject: [PATCH] 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 Change-Id: I79f27fb0b6bde0a4ce2466eaf707166a952fad81 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75390 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik Reviewed-by: Kapil Porwal Reviewed-by: Tarun Tuli --- src/soc/intel/meteorlake/gpio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/intel/meteorlake/gpio.c b/src/soc/intel/meteorlake/gpio.c index 2662ddeed6..d4cbe0c24a 100644 --- a/src/soc/intel/meteorlake/gpio.c +++ b/src/soc/intel/meteorlake/gpio.c @@ -75,6 +75,7 @@ static const struct vw_entries mtl_community5_vw[] = { static const struct pad_community mtl_communities[] = { [COMM_0] = { /* GPP CPU, V, C */ .port = PID_GPIOCOM0, + .cpu_port = PID_GPIOCOM0, .first_pad = GPIO_COM0_START, .last_pad = GPIO_COM0_END, .num_gpi_regs = NUM_GPIO_COM0_GPI_REGS, @@ -102,6 +103,7 @@ static const struct pad_community mtl_communities[] = { }, [COMM_1] = { /* GPP A, E */ .port = PID_GPIOCOM1, + .cpu_port = PID_GPIOCOM1, .first_pad = GPIO_COM1_START, .last_pad = GPIO_COM1_END, .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 */ .port = PID_GPIOCOM3, + .cpu_port = PID_GPIOCOM3, .first_pad = GPIO_COM3_START, .last_pad = GPIO_COM3_END, .num_gpi_regs = NUM_GPIO_COM3_GPI_REGS, @@ -152,6 +155,7 @@ static const struct pad_community mtl_communities[] = { }, [COMM_4] = { /* GPP S, JTAG */ .port = PID_GPIOCOM4, + .cpu_port = PID_GPIOCOM4, .first_pad = GPIO_COM4_START, .last_pad = GPIO_COM4_END, .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 */ .port = PID_GPIOCOM5, + .cpu_port = PID_GPIOCOM5, .first_pad = GPIO_COM5_START, .last_pad = GPIO_COM5_END, .num_gpi_regs = NUM_GPIO_COM5_GPI_REGS,