soc/intel/skylake: Add macro for setting GPIO interrupt trigger mode.
Currently, there is no macro to set GPIO interrupt trigger mode. The purpose is to make coreboot set same trigger mode as GpioInt BUG=b:62067569 TEST=checked unused interrupt on SD_CD does not happen after s3 resume Change-Id: I42b9cd80b494e24c55b97e54cdf59bfd24dd9054 Signed-off-by: Kane Chen <kane.chen@intel.com> Reviewed-on: https://review.coreboot.org/19992 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
parent
f4835a85c0
commit
4db78e39da
|
@ -140,6 +140,12 @@ void gpio_configure_pads(const struct pad_config *cfgs, size_t num);
|
||||||
_DW0_VALS(rst_, RAW, NO, LEVEL, NO, NO, NO, NO, NO, NO, GPIO, NO, YES),\
|
_DW0_VALS(rst_, RAW, NO, LEVEL, NO, NO, NO, NO, NO, NO, GPIO, NO, YES),\
|
||||||
PAD_FIELD(HOSTSW, GPIO))
|
PAD_FIELD(HOSTSW, GPIO))
|
||||||
|
|
||||||
|
/* General purpose input passed through to GPIO interrupt */
|
||||||
|
#define PAD_CFG_GPI_INT(pad_, term_, rst_, trig_) \
|
||||||
|
_PAD_CFG_ATTRS(pad_, term_, \
|
||||||
|
_DW0_VALS(rst_, RAW, NO, trig_, NO, NO, NO, NO, NO, NO, GPIO, NO, YES),\
|
||||||
|
PAD_FIELD(HOSTSW, GPIO))
|
||||||
|
|
||||||
/* General purpose input passed through to IOxAPIC. Assume APIC logic can
|
/* General purpose input passed through to IOxAPIC. Assume APIC logic can
|
||||||
* handle polarity/edge/level constraints. */
|
* handle polarity/edge/level constraints. */
|
||||||
#define PAD_CFG_GPI_APIC(pad_, term_, rst_) \
|
#define PAD_CFG_GPI_APIC(pad_, term_, rst_) \
|
||||||
|
|
Loading…
Reference in New Issue