soc/intel/common/gpio: Add macro for interrupt GPI with driver mode
Adds PAD_CFG_GPI_APIC_DRIVER macros to configure interrupt pad with driver mode. This is needed when a PAD is configured as an interrupt such that the corresponding GPI_IS status bit can be updated by the host controller hardware. BUG=none TEST=Check a GPIO pad that is used as interrupt via GpioInt in the ACPI device _CRS method and check the interrupt has been assigned in /proc/interrupts. Signed-off-by: Cliff Huang <cliff.huang@intel.com> Change-Id: Ibc1ed3089c24302bc7eb02318714b8ec464fad01 Reviewed-on: https://review.coreboot.org/c/coreboot/+/86414 Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com> Reviewed-by: Kyoung Il Kim <kyoung.il.kim@intel.com> Reviewed-by: Bora Guvendik <bora.guvendik@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
1633ae8378
commit
3ef23c9a88
1 changed files with 8 additions and 0 deletions
|
|
@ -436,6 +436,14 @@
|
|||
PAD_IRQ_CFG(IOAPIC, trig, inv), PAD_PULL(pull) | \
|
||||
PAD_IOSSTATE(TxDRxE))
|
||||
|
||||
/* General purpose input, routed to APIC, HostOwn */
|
||||
#define PAD_CFG_GPI_APIC_DRIVER(pad, pull, rst, trig, inv) \
|
||||
_PAD_CFG_STRUCT(pad, \
|
||||
PAD_FUNC(GPIO) | PAD_RESET(rst) | PAD_BUF(TX_DISABLE) | \
|
||||
PAD_IRQ_CFG(IOAPIC, trig, inv), PAD_PULL(pull) | \
|
||||
PAD_IOSSTATE(TxDRxE) | \
|
||||
PAD_CFG_OWN_GPIO(DRIVER))
|
||||
|
||||
/* General purpose input with lock, routed to APIC */
|
||||
#define PAD_CFG_GPI_APIC_LOCK(pad, pull, trig, inv, lock_action) \
|
||||
_PAD_CFG_STRUCT_LOCK(pad, \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue