diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2022-01-19 22:35:23 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-07 14:07:12 +0000 |
commit | 6efc7edc13fbfea66d2de31a1b0707852fb9d9fc (patch) | |
tree | f983234e9df21085fe4e2db9f96527ecbf20e7c3 /src/soc/intel/apollolake/acpi/northbridge.asl | |
parent | 168c25b82bb694cda5de04819e77a08bdbd46ebf (diff) |
soc/intel/apollolake: Convert to ASL 2.0
Change-Id: Ieb362b5be05421b6ad2b2a3126c2943b7d55d135
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61243
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Diffstat (limited to 'src/soc/intel/apollolake/acpi/northbridge.asl')
-rw-r--r-- | src/soc/intel/apollolake/acpi/northbridge.asl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/soc/intel/apollolake/acpi/northbridge.asl b/src/soc/intel/apollolake/acpi/northbridge.asl index 6791e15670..834e5e4170 100644 --- a/src/soc/intel/apollolake/acpi/northbridge.asl +++ b/src/soc/intel/apollolake/acpi/northbridge.asl @@ -78,9 +78,9 @@ Method (_CRS, 0, Serialized) CreateDwordField (MCRS, PM01._LEN, PLEN) /* Read C-Unit PCI CFG Reg. 0xBC for TOLUD (shadow from B-Unit) */ - And(\_SB.PCI0.MCHC.TLUD, 0xFFF00000, PMIN) + PMIN = \_SB.PCI0.MCHC.TLUD & 0xFFF00000 /* Read MMCONF base */ - And(\_SB.PCI0.MCHC.MCNF, 0xF0000000, PMAX) + PMAX = \_SB.PCI0.MCHC.MCNF & 0xF0000000 /* Calculate PCI MMIO Length */ PLEN = PMAX - PMIN + 1 @@ -91,24 +91,24 @@ Method (_CRS, 0, Serialized) CreateDwordField(MCRS, STOM._LEN, GLEN) /* Read BGSM */ - And(\_SB.PCI0.MCHC.BGSM, 0xFFF00000, GMIN) + GMIN = \_SB.PCI0.MCHC.BGSM & 0xFFF00000 /* Read TOLUD */ - And(\_SB.PCI0.MCHC.TLUD, 0xFFF00000, GMAX) + GMAX = \_SB.PCI0.MCHC.TLUD & 0xFFF00000 GMAX-- GLEN = GMAX - GMIN + 1 /* Patch PM02 range based on Memory Size */ - If (LEqual (A4GS, 0)) { + If (A4GS == 0) { CreateQwordField (MCRS, PM02._LEN, MSEN) - Store (0, MSEN) + MSEN = 0 } Else { CreateQwordField (MCRS, PM02._MIN, MMIN) CreateQwordField (MCRS, PM02._MAX, MMAX) CreateQwordField (MCRS, PM02._LEN, MLEN) /* Set 64bit MMIO resource base and length */ - Store (A4GS, MLEN) - Store (A4GB, MMIN) + MLEN = A4GS + MMIN = A4GB MMAX = MMIN + MLEN - 1 } |