soc/intel/common/block: add definition of GPIO configuration
Add two macros: - PAD_CFG_NF_OWNERSHIP() - PAD_CFG_GPIO_OWNERSHIP() to support setting the Host Software Ownership (own) fields. Signed-off-by: lichenchen.carl <lichenchen.carl@bytedance.com> Change-Id: Ia3f2ad8658b751156456b69366fa4b1badb8b595 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70421 Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
This commit is contained in:
parent
2557d02eee
commit
3de39fa36f
|
@ -524,4 +524,16 @@
|
|||
|
||||
#endif /* CONFIG_SOC_INTEL_COMMON_BLOCK_GPIO_DUAL_ROUTE_SUPPORT */
|
||||
|
||||
/* Native function configuration */
|
||||
#define PAD_CFG_NF_OWNERSHIP(pad, pull, rst, func, own) \
|
||||
_PAD_CFG_STRUCT(pad, \
|
||||
PAD_RESET(rst) | PAD_FUNC(func) | PAD_TRIG(OFF), \
|
||||
PAD_PULL(pull) | PAD_IOSSTATE(TxLASTRxE) | \
|
||||
PAD_CFG_OWN_GPIO(own))
|
||||
|
||||
#define PAD_CFG_GPIO_OWNERSHIP(pad, pull, rst, own) \
|
||||
_PAD_CFG_STRUCT(pad, \
|
||||
PAD_FUNC(GPIO) | PAD_RESET(rst) | PAD_TRIG(OFF), \
|
||||
PAD_PULL(pull) | PAD_CFG_OWN_GPIO(own))
|
||||
|
||||
#endif /* _SOC_BLOCK_GPIO_DEFS_H_ */
|
||||
|
|
Loading…
Reference in New Issue