soc/intel/apollolake/acpi: Replace Add(a,b,c) with ASL 2.0 syntax
Replace `Add (a, b, c)` with `c = a + b`. Change-Id: I4d6039affd9688a2e795d69f699d5baf688ba2e4 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60494 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
parent
26fbcc91d6
commit
1bdac6a8e7
|
@ -69,7 +69,7 @@ Scope (\_SB)
|
||||||
Method (CHSA, 0x1, Serialized)
|
Method (CHSA, 0x1, Serialized)
|
||||||
{
|
{
|
||||||
/* Arg0 - GPIO pad offset relative to the community */
|
/* Arg0 - GPIO pad offset relative to the community */
|
||||||
Add (HOSTSW_OWN_REG_0, Multiply (Divide (Arg0, 32), 4), Local1)
|
Local1 = HOSTSW_OWN_REG_0 + Multiply (Divide (Arg0, 32), 4)
|
||||||
Return (Local1)
|
Return (Local1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,7 @@ Method (_CRS, 0, Serialized)
|
||||||
And(\_SB.PCI0.MCHC.MCNF, 0xF0000000, PMAX)
|
And(\_SB.PCI0.MCHC.MCNF, 0xF0000000, PMAX)
|
||||||
|
|
||||||
/* Calculate PCI MMIO Length */
|
/* Calculate PCI MMIO Length */
|
||||||
Add(Subtract(PMAX, PMIN), 1, PLEN)
|
PLEN = Subtract(PMAX, PMIN) + 1
|
||||||
|
|
||||||
/* Find GFX resource area in GCRS */
|
/* Find GFX resource area in GCRS */
|
||||||
CreateDwordField(MCRS, STOM._MIN, GMIN)
|
CreateDwordField(MCRS, STOM._MIN, GMIN)
|
||||||
|
@ -96,7 +96,7 @@ Method (_CRS, 0, Serialized)
|
||||||
/* Read TOLUD */
|
/* Read TOLUD */
|
||||||
And(\_SB.PCI0.MCHC.TLUD, 0xFFF00000, GMAX)
|
And(\_SB.PCI0.MCHC.TLUD, 0xFFF00000, GMAX)
|
||||||
Decrement(GMAX)
|
Decrement(GMAX)
|
||||||
Add(Subtract(GMAX, GMIN), 1, GLEN)
|
GLEN = Subtract(GMAX, GMIN) + 1
|
||||||
|
|
||||||
/* Patch PM02 range based on Memory Size */
|
/* Patch PM02 range based on Memory Size */
|
||||||
If (LEqual (A4GS, 0)) {
|
If (LEqual (A4GS, 0)) {
|
||||||
|
|
Loading…
Reference in New Issue