Martin Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/83315?usp=email )
Change subject: soc/intel/common/intelblocks/gpio.h: Allow specifying the pad ownership ......................................................................
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 yuchi.chen@intel.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/83315 Reviewed-by: Shuo Liu shuo.liu@intel.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/soc/intel/common/block/include/intelblocks/gpio.h 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Shuo Liu: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/src/soc/intel/common/block/include/intelblocks/gpio.h b/src/soc/intel/common/block/include/intelblocks/gpio.h index a7bb332..8e60a16 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 @@ 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 */