aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-31 12:03:37 +0100
committerFelix Singer <felixsinger@posteo.net>2022-01-01 14:01:51 +0000
commita330382db4701f411482de002ae8b60e5e3d4eda (patch)
tree82cec2fa8108fd34cacb3bd494559df2e10065c6 /src/soc/intel/apollolake
parentfde7a0522331246e0d248827d6ee8f65a02950c7 (diff)
soc/intel/apollolake/acpi: Replace Divide(a,b) with ASL 2.0 syntax
Replace `Divide (a, b)` with `a / b`. Change-Id: Ifb377f0abb50a736aa3aa53a11d45bee65488c4c Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60569 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/apollolake')
-rw-r--r--src/soc/intel/apollolake/acpi/gpiolib.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/acpi/gpiolib.asl b/src/soc/intel/apollolake/acpi/gpiolib.asl
index 89f647e0e9..31599f2553 100644
--- a/src/soc/intel/apollolake/acpi/gpiolib.asl
+++ b/src/soc/intel/apollolake/acpi/gpiolib.asl
@@ -68,7 +68,7 @@ Scope (\_SB)
Method (CHSA, 0x1, Serialized)
{
/* Arg0 - GPIO pad offset relative to the community */
- Local1 = HOSTSW_OWN_REG_0 + Divide (Arg0, 32) * 4
+ Local1 = HOSTSW_OWN_REG_0 + Arg0 / 32 * 4
Return (Local1)
}