Skip to content

Commit 7b42153

Browse files
Tim Wawrzynczakfelixheld
Tim Wawrzynczak
authored andcommitted
soc/intel/cmn/block/acpi: Add new GPIO ASL Method
Ths new Method, GSCI, allows control over whether or not IRQs are routed as SCI#s for the given GPIO. Signed-off-by: Tim Wawrzynczak <[email protected]> Change-Id: Ic61caaf77d2c6e295e67a1501544e8b8fc6f3b6a Reviewed-on: https://review.coreboot.org/c/coreboot/+/66813 Reviewed-by: Angel Pons <[email protected]> Reviewed-by: Subrata Banik <[email protected]> Tested-by: build bot (Jenkins) <[email protected]>
1 parent a057d2c commit 7b42153

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/soc/intel/common/block/acpi/acpi/gpio_op.asl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,22 @@ Method (GRXE, 2, Serialized)
117117

118118
RXDI = !Arg1
119119
}
120+
121+
/*
122+
* Enable/Disable SCI interrupt route
123+
* Arg0 - GPIO Number
124+
* Arg1 - Route to SCI#
125+
* 0 = Disable IRQ route to SCI#
126+
* 1 = Enable IRQ route to SCI#
127+
*/
128+
Method (GSCI, 2, Serialized)
129+
{
130+
OperationRegion (PREG, SystemMemory, GADD (Arg0), 4)
131+
Field (PREG, AnyAcc, NoLock, Preserve)
132+
{
133+
, 19,
134+
SCIR, 1,
135+
}
136+
137+
SCIR = Arg1
138+
}

0 commit comments

Comments
 (0)