UPSTREAM: soc/intel/skylake: Add GPIO macros for IOxAPIC and SCI
Add two GPIO macros:
1. PAD_CFG_GPI_APIC_EDGE allows a pin to be route to the
APIC with input assuming the events are edge triggered.
2. PAD_CFG_GPI_ACPI_SCI_LEVEL to route the general purpose
input to SCI assuming the events are level triggered.
BUG=none
BRANCH=none
TEST=none
Change-Id: I38f8bb09537eaf41c89d584db767bda484181416
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 75d8d8da47
Original-Change-Id: I944a9abac66b7780b2336148ae8c7fa3a8410f3f
Original-Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com>
Original-Reviewed-on: https://review.coreboot.org/18533
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://chromium-review.googlesource.com/452472
This commit is contained in:
parent
540ca18519
commit
87ff207f1b
1 changed files with 11 additions and 0 deletions
|
|
@ -152,12 +152,23 @@ void gpio_configure_pads(const struct pad_config *cfgs, size_t num);
|
|||
_DW0_VALS(rst_, RAW, NO, LEVEL, NO, YES, YES, NO, NO, NO, GPIO, NO, \
|
||||
YES))
|
||||
|
||||
/* General purpose input passed through to IOxAPIC. This assumes edge
|
||||
* triggered events. */
|
||||
#define PAD_CFG_GPI_APIC_EDGE(pad_, term_, rst_) \
|
||||
_PAD_CFG(pad_, term_, \
|
||||
_DW0_VALS(rst_, RAW, NO, EDGE, NO, NO, YES, NO, NO, NO, GPIO, NO, YES))
|
||||
|
||||
/* General purpose input routed to SCI. This assumes edge triggered events. */
|
||||
#define PAD_CFG_GPI_ACPI_SCI(pad_, term_, rst_, inv_) \
|
||||
_PAD_CFG_ATTRS(pad_, term_, \
|
||||
_DW0_VALS(rst_, RAW, NO, EDGE, NO, inv_, \
|
||||
NO, YES, NO, NO, GPIO, NO, YES), PAD_FIELD(HOSTSW, ACPI))
|
||||
|
||||
#define PAD_CFG_GPI_ACPI_SCI_LEVEL(pad_, term_, rst_, inv_) \
|
||||
_PAD_CFG_ATTRS(pad_, term_, \
|
||||
_DW0_VALS(rst_, RAW, NO, LEVEL, NO, inv_, \
|
||||
NO, YES, NO, NO, GPIO, NO, YES), PAD_FIELD(HOSTSW, ACPI))
|
||||
|
||||
/* General purpose input routed to SMI. This assumes edge triggered events. */
|
||||
#define PAD_CFG_GPI_ACPI_SMI(pad_, term_, rst_, inv_) \
|
||||
_PAD_CFG_ATTRS(pad_, term_, \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue