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

Replace `LEqual (a, b)` with `a == b`.

Change-Id: I9d50ddcb4427774681aedba945079f5d04401f07
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70589
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 21:15:05 +01:00
parent 31c099a7b8
commit 26c7672591
8 changed files with 31 additions and 31 deletions

View File

@ -9,7 +9,7 @@ Device (TCHG)
Method (_STA)
{
If (LEqual (\DPTE, One)) {
If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)
@ -30,7 +30,7 @@ Device (TCHG)
Local0--
/* Check if charging is disabled (AC removed) */
If (LEqual (\PWRS, Zero)) {
If (\PWRS == Zero) {
/* Return last power state */
Return (Local0)
} Else {

View File

@ -13,7 +13,7 @@ Device (TCPU)
Method (_STA)
{
If (LEqual (\DPTE, One)) {
If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)

View File

@ -19,7 +19,7 @@ Device (DPTF)
Method (_STA)
{
If (LEqual (\DPTE, One)) {
If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)
@ -36,7 +36,7 @@ Device (DPTF)
Method (_OSC, 4, Serialized)
{
/* Check for Passive Policy UUID */
If (LEqual (DeRefOf (Index (IDSP, 0)), Arg0)) {
If (DeRefOf (Index (IDSP, 0)) == Arg0) {
/* Initialize Thermal Devices */
^TINI ()

View File

@ -9,17 +9,17 @@ Method (TEVT, 1, NotSerialized)
Store (ToInteger (Arg0), Local0)
#ifdef DPTF_TSR0_SENSOR_ID
If (LEqual (Local0, DPTF_TSR0_SENSOR_ID)) {
If (Local0 == DPTF_TSR0_SENSOR_ID) {
Notify (^TSR0, 0x90)
}
#endif
#ifdef DPTF_TSR1_SENSOR_ID
If (LEqual (Local0, DPTF_TSR1_SENSOR_ID)) {
If (Local0 == DPTF_TSR1_SENSOR_ID) {
Notify (^TSR1, 0x90)
}
#endif
#ifdef DPTF_TSR2_SENSOR_ID
If (LEqual (Local0, DPTF_TSR2_SENSOR_ID)) {
If (Local0 == DPTF_TSR2_SENSOR_ID) {
Notify (^TSR2, 0x90)
}
#endif
@ -52,7 +52,7 @@ Device (TSR0)
Method (_STA)
{
If (LEqual (\DPTE, One)) {
If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)
@ -108,7 +108,7 @@ Device (TSR1)
Method (_STA)
{
If (LEqual (\DPTE, One)) {
If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)
@ -164,7 +164,7 @@ Device (TSR2)
Method (_STA)
{
If (LEqual (\DPTE, One)) {
If (\DPTE == One) {
Return (0xF)
} Else {
Return (0x0)

View File

@ -64,7 +64,7 @@ Device (LPEA)
Method (_STA)
{
If (LEqual (\LPEN, 1)) {
If (\LPEN == 1) {
Return (0xF)
} Else {
Return (0x0)

View File

@ -24,7 +24,7 @@ Device (SDM1)
Method (_STA)
{
If (LEqual (\S0EN, 1)) {
If (\S0EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -56,7 +56,7 @@ Device (SDM2)
Method (_STA)
{
If (LEqual (\S8EN, 1)) {
If (\S8EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -96,7 +96,7 @@ Device (I2C1)
Method (_STA)
{
If (LEqual (\S1EN, 1)) {
If (\S1EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -155,7 +155,7 @@ Device (I2C2)
Method (_STA)
{
If (LEqual (\S2EN, 1)) {
If (\S2EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -214,7 +214,7 @@ Device (I2C3)
Method (_STA)
{
If (LEqual (\S3EN, 1)) {
If (\S3EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -273,7 +273,7 @@ Device (I2C4)
Method (_STA)
{
If (LEqual (\S4EN, 1)) {
If (\S4EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -332,7 +332,7 @@ Device (I2C5)
Method (_STA)
{
If (LEqual (\S5EN, 1)) {
If (\S5EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -391,7 +391,7 @@ Device (I2C6)
Method (_STA)
{
If (LEqual (\S6EN, 1)) {
If (\S6EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -450,7 +450,7 @@ Device (I2C7)
Method (_STA)
{
If (LEqual (\S7EN, 1)) {
If (\S7EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -503,7 +503,7 @@ Device (SPI1)
Method (_STA)
{
If (LEqual (\S9EN, 1)) {
If (\S9EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -550,7 +550,7 @@ Device (PWM1)
Method (_STA)
{
If (LEqual (\SAEN, 1)) {
If (\SAEN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -578,7 +578,7 @@ Device (PWM2)
Method (_STA)
{
If (LEqual (\SBEN, 1)) {
If (\SBEN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -612,7 +612,7 @@ Device (UAR1)
Method (_STA)
{
If (LEqual (\SCEN, 1)) {
If (\SCEN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -665,7 +665,7 @@ Device (UAR2)
Method (_STA)
{
If (LEqual (\SDEN, 1)) {
If (\SDEN == 1) {
Return (0xF)
} Else {
Return (0x0)

View File

@ -25,7 +25,7 @@ Device (EMMC)
Method (_STA)
{
If (LEqual (\C0EN, 1)) {
If (\C0EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -88,7 +88,7 @@ Device (SDIO)
Method (_STA)
{
If (LEqual (\C1EN, 1)) {
If (\C1EN == 1) {
Return (0xF)
} Else {
Return (0x0)
@ -140,7 +140,7 @@ Device (SDCD)
Method (_STA)
{
If (LEqual (\C2EN, 1)) {
If (\C2EN == 1) {
Return (0xF)
} Else {
Return (0x0)

View File

@ -155,7 +155,7 @@ Method (_CRS, 0, Serialized)
CreateDWordField (MCRS, ^LMEM._MIN, LMIN)
CreateDWordField (MCRS, ^LMEM._MAX, LMAX)
CreateDWordField (MCRS, ^LMEM._LEN, LLEN)
If (LAnd (LNotEqual (LPFW, Zero), LEqual (LPEN, One)))
If (LAnd (LNotEqual (LPFW, Zero), LPEN == One))
{
Store (LPFW, LMIN)
Store (0x00100000, LLEN)
@ -208,7 +208,7 @@ Device (PDRC)
Method (_OSC, 4)
{
/* Check for proper GUID */
If (LEqual (Arg0, ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766")))
If (Arg0 == ToUUID("33DB4D5B-1FF7-401C-9657-7441C03DD766"))
{
/* Let OS control everything */
Return (Arg3)