soc/intel/acpi: Replace LNotEqual(a,b) with ASL 2.0 syntax

Replace `LNotEqual (a, b)` with `a != b`.

Change-Id: Ia1bd22a62ec2868324a88400e27ed52c9f169751
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70619
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer 2022-12-11 23:55:57 +01:00
parent 49384da933
commit 8f75d79e74
3 changed files with 3 additions and 4 deletions

View File

@ -155,7 +155,7 @@ Method (_CRS, 0, Serialized)
CreateDWordField (MCRS, ^LMEM._MIN, LMIN) CreateDWordField (MCRS, ^LMEM._MIN, LMIN)
CreateDWordField (MCRS, ^LMEM._MAX, LMAX) CreateDWordField (MCRS, ^LMEM._MAX, LMAX)
CreateDWordField (MCRS, ^LMEM._LEN, LLEN) CreateDWordField (MCRS, ^LMEM._LEN, LLEN)
If (LAnd (LNotEqual (LPFW, Zero), LPEN == One)) If (LAnd (LPFW != Zero, LPEN == One))
{ {
Store (LPFW, LMIN) Store (LPFW, LMIN)
Store (0x00100000, LLEN) Store (0x00100000, LLEN)

View File

@ -154,7 +154,7 @@ Method (_CRS, 0, Serialized)
CreateDWordField (MCRS, LMEM._MIN, LMIN) CreateDWordField (MCRS, LMEM._MIN, LMIN)
CreateDWordField (MCRS, LMEM._MAX, LMAX) CreateDWordField (MCRS, LMEM._MAX, LMAX)
CreateDWordField (MCRS, LMEM._LEN, LLEN) CreateDWordField (MCRS, LMEM._LEN, LLEN)
If (LAnd (LNotEqual (LPFW, Zero), LPEN == One)) If (LAnd (LPFW != Zero, LPEN == One))
{ {
Store (LPFW, LMIN) Store (LPFW, LMIN)
Store (Add (LMIN, 0x001FFFFF), LMAX) Store (Add (LMIN, 0x001FFFFF), LMAX)

View File

@ -37,8 +37,7 @@ Device (HDAS)
* if NHLT address and length are set in NVS. * if NHLT address and length are set in NVS.
*/ */
If (LAnd (Arg1 == One, If (LAnd (Arg1 == One,
LAnd (LNotEqual (NHLA, Zero), LAnd (NHLA != Zero, NHLL != Zero))) {
LNotEqual (NHLL, Zero)))) {
Return (Buffer (One) { 0x03 }) Return (Buffer (One) { 0x03 })
} Else { } Else {
Return (Buffer (One) { 0x01 }) Return (Buffer (One) { 0x01 })