aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/acpi/sb_pci0_fch.asl
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-09-24 20:18:26 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-10-26 06:56:00 +0000
commit28b68ae4fe69bb4bb43b205cb6aa1fd1caa35e32 (patch)
tree3265b2256a03699f854f1600d9feb26f1ce87e4a /src/soc/amd/picasso/acpi/sb_pci0_fch.asl
parent466a378b9a6e5cc4dd5f90cc158b39842098639d (diff)
soc/amd/picasso/acpi: Convert to ASL 2.0 syntax
Change-Id: I1cabe0f55ec55a84f8e9028565be69c9dd997e7c Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45701 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/soc/amd/picasso/acpi/sb_pci0_fch.asl')
-rw-r--r--src/soc/amd/picasso/acpi/sb_pci0_fch.asl18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/soc/amd/picasso/acpi/sb_pci0_fch.asl b/src/soc/amd/picasso/acpi/sb_pci0_fch.asl
index 9208e136f7..f627a28039 100644
--- a/src/soc/amd/picasso/acpi/sb_pci0_fch.asl
+++ b/src/soc/amd/picasso/acpi/sb_pci0_fch.asl
@@ -9,14 +9,14 @@ External(\_SB.ALIB, MethodObj)
Method(_OSC,4)
{
/* Check for proper PCI/PCIe UUID */
- If(LEqual(Arg0,ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766")))
+ If (Arg0 == ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766"))
{
/* Let OS control everything */
Return (Arg3)
} Else {
CreateDWordField(Arg3,0,CDW1)
- Or(CDW1,4,CDW1) // Unrecognized UUID
- Return(Arg3)
+ CDW1 |= 4 // Unrecognized UUID
+ Return (Arg3)
}
}
@@ -78,15 +78,15 @@ Method(_CRS, 0) {
* 32bit (0x00000000 - TOM1) will wrap and give the same
* result as 64bit (0x100000000 - TOM1).
*/
- Store(TOM1, MM1B)
- ShiftLeft(0x10000000, 4, Local0)
- Subtract(Local0, TOM1, Local0)
- Store(Local0, MM1L)
+ MM1B = TOM1
+ Local0 = 0x10000000 << 4
+ Local0 -= TOM1
+ MM1L = Local0
CreateWordField(CRES, ^PSB0._MAX, BMAX)
CreateWordField(CRES, ^PSB0._LEN, BLEN)
- Store(CONFIG_MMCONF_BUS_NUMBER - 1, BMAX)
- Store(CONFIG_MMCONF_BUS_NUMBER, BLEN)
+ BMAX = CONFIG_MMCONF_BUS_NUMBER - 1
+ BLEN = CONFIG_MMCONF_BUS_NUMBER
Return(CRES) /* note to change the Name buffer */
} /* end of Method(_SB.PCI0._CRS) */