soc/intel/pantherlake: Skip exposing CPUJTAG at kernel

This patch prevents exposing the CPU JTAG GPIO pads. These are
internal GPIO pins used for debugging the SoC and should not be
configurable from the kernel pinctrl driver.

TEST=Able to build and boot google/fatat. Decompile ACPI table
using iasl and ensure CPUJTAG entry not present.

Change-Id: I4d920acb95275fbf72b83b822eddc41829511626
Signed-off-by: Subrata Banik <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86393
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Dinesh Gehlot <digehlot@google.com>
Reviewed-by: Jayvik Desai <jayvik@google.com>
Reviewed-by: Eric Lai <ericllai@google.com>
This commit is contained in:
Subrata Banik 2025-02-13 11:35:46 +05:30
commit 29054bc9c7
2 changed files with 8 additions and 36 deletions

View file

@ -27,10 +27,10 @@ Method (GADD, 1, NotSerialized)
Local1 = Arg0 - COM1_GRP_PAD_START
}
/* GPIO Community 3 */
If (Arg0 >= COM3_GRP_PAD_START && Arg0 <= COM3_GRP_PAD_END)
If (Arg0 >= GPP_H00 && Arg0 <= COM3_GRP_PAD_END)
{
Local0 = PID_GPIOCOM3
Local1 = Arg0 - COM3_GRP_PAD_START
Local1 = Arg0 - GPP_H00
}
/* GPIO Community 4 */
If (Arg0 >= COM4_GRP_PAD_START && Arg0 <= COM4_GRP_PAD_END)
@ -438,7 +438,7 @@ Device (GPI1)
}
}
/* GPIO Community 3: CPUJTAG, GPP_H, GPP_A, VGPIO3 */
/* GPIO Community 3: GPP_H, GPP_A, VGPIO3 */
Device (GPI3)
{
Name (_HID, ACPI_GPIO_HID)
@ -471,7 +471,7 @@ Device (GPI3)
Package (0x02)
{
"intc-gpio-group-count",
NUM_COM3_GROUPS
NUM_COM3_GROUPS - 1 /* Skip CPUJTAG */
},
Package (0x02)
@ -508,12 +508,6 @@ Device (GPI3)
ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
Package (0x04)
{
Package (0x02)
{
"intc-gpio-group-0-subproperties",
JTAG
},
Package (0x02)
{
"intc-gpio-group-1-subproperties",
@ -533,31 +527,10 @@ Device (GPI3)
}
}
})
/* first bank/group in community 3: CPUJTAG */
Name (JTAG, Package (0x02)
{
ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
Package (0x03)
{
Package (0x02)
{
"intc-gpio-group-name",
GPP_CPUJTAG_NAME
},
Package (0x02)
{
"intc-gpio-pad-count",
NUM_GRP_CPUJTAG_PADS
},
Package (0x02)
{
"intc-gpio-group-offset",
GPP_CPUJTAG_START_OFFSET
}
}
})
/*
* Don't expose first bank/group in community 3: CPUJTAG because
* CPUJTAG doesn't required to be controlled by kernel pinctrl driver.
*/
/* 2nd bank/group in community 3: GPP_H */
Name (GPPH, Package (0x02)
{

View file

@ -37,7 +37,6 @@
#define GPP_C_NAME "GPP_C"
#define GPP_F_NAME "GPP_F"
#define GPP_E_NAME "GPP_E"
#define GPP_CPUJTAG_NAME "GPUJTAG"
#define GPP_H_NAME "GPP_H"
#define GPP_A_NAME "GPP_A"
#define GPP_VGPIO3_NAME "vGPIO_3"