summaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/acpi
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2020-09-24 13:33:48 +0530
committerSubrata Banik <subrata.banik@intel.com>2020-09-25 03:03:14 +0000
commit3bcb6c7319ac5f23d7e5a9e637917cbd027ac371 (patch)
tree5d459b8229de7f8253fb0f13c12c8ead776eb82d /src/soc/intel/skylake/acpi
parent8d4176109d404dbbaf4689281ccec635c1070e99 (diff)
soc/intel: Use ASL 2.0 syntax for GPIO ASL helper function
Migrate ASL helper function like GRXS, GTXS, STXS, CTXS to ASL 2.0 syntax across CNL, ICL, JSL, SKL. TEST=Able to build and boot Hatch, EVE and ICLRVP platform. Dump and disassemble DSDT to ensure GRXS,GTXS etc functions implementation remain unchanged prior and after this CL. Change-Id: I0ebf1f86031eae25337d2dbeabb8893d9f19a14b Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45677 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/skylake/acpi')
-rw-r--r--src/soc/intel/skylake/acpi/gpio.asl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/skylake/acpi/gpio.asl b/src/soc/intel/skylake/acpi/gpio.asl
index 60e1cf5730..de6ff42226 100644
--- a/src/soc/intel/skylake/acpi/gpio.asl
+++ b/src/soc/intel/skylake/acpi/gpio.asl
@@ -119,7 +119,7 @@ Method (GRXS, 1, Serialized)
{
VAL0, 32
}
- And (GPIORXSTATE_MASK, ShiftRight (VAL0, PAD_CFG0_RX_STATE_BIT), Local0)
+ Local0 = GPIORXSTATE_MASK & (VAL0 >> PAD_CFG0_RX_STATE_BIT)
Return (Local0)
}
@@ -135,7 +135,7 @@ Method (GTXS, 1, Serialized)
{
VAL0, 32
}
- And (GPIOTXSTATE_MASK, ShiftRight (VAL0, PAD_CFG0_TX_STATE_BIT), Local0)
+ Local0 = GPIOTXSTATE_MASK & VAL0
Return (Local0)
}
@@ -151,7 +151,7 @@ Method (STXS, 1, Serialized)
{
VAL0, 32
}
- Or (GPIOTXSTATE_MASK, VAL0, VAL0)
+ VAL0 |= GPIOTXSTATE_MASK
}
/*
@@ -165,5 +165,5 @@ Method (CTXS, 1, Serialized)
{
VAL0, 32
}
- And (Not (GPIOTXSTATE_MASK), VAL0, VAL0)
+ VAL0 &= ~GPIOTXSTATE_MASK
}