EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/61672 )
Change subject: soc/intel/common/gpio: Add PAD_CFG_GPI_SCI_LOCK support ......................................................................
soc/intel/common/gpio: Add PAD_CFG_GPI_SCI_LOCK support
Add PAD_CFG_GPI_SCI_LOCK macro to support mainboard to lock GPI_SCI pins as applicable.
BUG=b:216583542 TEST=build passed
Signed-off-by: Eric Lai ericr_lai@compal.corp-partner.google.com Change-Id: I6bc435b38cd892c76fdb6107a5f1be9409e9207b --- M src/soc/intel/common/block/include/intelblocks/gpio_defs.h 1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/61672/1
diff --git a/src/soc/intel/common/block/include/intelblocks/gpio_defs.h b/src/soc/intel/common/block/include/intelblocks/gpio_defs.h index a0a4eeb..ff47ddf 100644 --- a/src/soc/intel/common/block/include/intelblocks/gpio_defs.h +++ b/src/soc/intel/common/block/include/intelblocks/gpio_defs.h @@ -435,6 +435,14 @@ PAD_IRQ_CFG(SCI, trig, inv), PAD_PULL(pull) | \ PAD_IOSSTATE(TxDRxE))
+/* General purpose input with lock, routed to SCI */ +#define PAD_CFG_GPI_SCI_LOCK(pad, pull, trig, inv, lock_action) \ + _PAD_CFG_STRUCT_LOCK(pad, \ + PAD_FUNC(GPIO) | PAD_RESET(PWROK) | PAD_BUF(TX_DISABLE) | \ + PAD_IRQ_CFG(SCI, trig, inv), PAD_PULL(pull) | \ + PAD_IOSSTATE(TxDRxE), \ + PAD_LOCK(lock_action)) + /* General purpose input, routed to SCI */ #define PAD_CFG_GPI_SCI_IOS(pad, pull, rst, trig, inv, iosstate, iosterm) \ _PAD_CFG_STRUCT(pad, \