Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60695 )
Change subject: soc/intel/apollolake/acpi: Replace Mod(a,b) with ASL 2.0 syntax ......................................................................
soc/intel/apollolake/acpi: Replace Mod(a,b) with ASL 2.0 syntax
Replace `Mod(a, b)` with `a % b`.
Change-Id: I261bae12558e07b0a5523f16f1750be6bb3b5555 Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/soc/intel/apollolake/acpi/scs.asl 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/60695/1
diff --git a/src/soc/intel/apollolake/acpi/scs.asl b/src/soc/intel/apollolake/acpi/scs.asl index 840cfbe..e8263a5 100644 --- a/src/soc/intel/apollolake/acpi/scs.asl +++ b/src/soc/intel/apollolake/acpi/scs.asl @@ -125,7 +125,7 @@ /* Get the current SD_CD ownership */ Store (_SB.GHO (\SCDP, \SCDO), Local0) /* Set host ownership as GPIO in HOSTSW_OWN reg */ - Or (Local0, ShiftLeft (1, Mod (\SCDO, 32)), Local0) + Or (Local0, ShiftLeft (1, \SCDO % 32), Local0) _SB.SHO (\SCDP, \SCDO, Local0) } }