soc/intel/cannonlake/acpi: Replace Add(a,b,c) with ASL 2.0 syntax
Replace `Add (a, b, c)` with `c = a + b`. Change-Id: Ibc5aeb5e8d85556d7564033ec92deb5b2dae093d Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60486 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
103f89a200
commit
3a8f0875c0
|
@ -91,7 +91,7 @@ Method (GADD, 1, NotSerialized)
|
||||||
Local1 = Arg0 - GPP_C0
|
Local1 = Arg0 - GPP_C0
|
||||||
}
|
}
|
||||||
Store (PCRB (Local0), Local2)
|
Store (PCRB (Local0), Local2)
|
||||||
Add (Local2, PAD_CFG_BASE, Local2)
|
Local2 += PAD_CFG_BASE
|
||||||
Return (Add (Local2, Multiply (Local1, 16)))
|
Return (Add (Local2, Multiply (Local1, 16)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,6 @@ Method (GADD, 1, NotSerialized)
|
||||||
Local1 = Arg0 - GPP_I0
|
Local1 = Arg0 - GPP_I0
|
||||||
}
|
}
|
||||||
Store (PCRB (Local0), Local2)
|
Store (PCRB (Local0), Local2)
|
||||||
Add (Local2, PAD_CFG_BASE, Local2)
|
Local2 += PAD_CFG_BASE
|
||||||
Return (Add (Local2, Multiply (Local1, 16)))
|
Return (Add (Local2, Multiply (Local1, 16)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue