From b3c53b1109dfbc40ee7295c089896cb693f5a1fe Mon Sep 17 00:00:00 2001 From: Yuchi Chen Date: Tue, 25 Jun 2024 10:48:11 +0800 Subject: soc/intel/common/intelblocks/gpio.h: Allow specifying the pad ownership Add pad_own_reg_0 to `struct pad_community`. Pad ownership indicates whether the GPIO is owned by host or Intel Management Engine. If owned by host, then host ownership indicates whether the GPIO is owned by ACPI or driver. Change-Id: I30a934fd00a7a42cb156341da1954e4e4b1231d8 Signed-off-by: Yuchi Chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/83315 Reviewed-by: Shuo Liu Tested-by: build bot (Jenkins) --- src/soc/intel/common/block/include/intelblocks/gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/soc/intel') diff --git a/src/soc/intel/common/block/include/intelblocks/gpio.h b/src/soc/intel/common/block/include/intelblocks/gpio.h index a7bb332344..8e60a1633f 100644 --- a/src/soc/intel/common/block/include/intelblocks/gpio.h +++ b/src/soc/intel/common/block/include/intelblocks/gpio.h @@ -121,7 +121,8 @@ struct pad_community { Number of pads bit mapped in each GPI status/en and Host Own Reg */ gpio_t first_pad; /* first pad in community */ gpio_t last_pad; /* last pad in community */ - uint16_t host_own_reg_0; /* offset to Host Ownership Reg 0 */ + uint16_t pad_own_reg_0; /* offset to Pad Ownership (host or CSME) Reg 0 */ + uint16_t host_own_reg_0; /* offset to Host Ownership (ACPI or driver) Reg 0 */ uint16_t gpi_int_sts_reg_0; /* offset to GPI Int STS Reg 0 */ uint16_t gpi_int_en_reg_0; /* offset to GPI Int Enable Reg 0 */ uint16_t gpi_smi_sts_reg_0; /* offset to GPI SMI STS Reg 0 */ -- cgit v1.2.3