diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-12 02:34:43 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-14 00:46:41 +0000 |
commit | facf7d077cef1c324fe9b239c63bffd612e60732 (patch) | |
tree | ce531c01ba903b8b9806b0302a6094919da58bc2 /src/superio | |
parent | 18af706d501730de4b1471886f7b47b95a522449 (diff) |
superio/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`.
Change-Id: Ibbecba97dd1628889539c2962dd31964c252c8bb
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70631
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/superio')
-rw-r--r-- | src/superio/acpi/pnp.asl | 24 | ||||
-rw-r--r-- | src/superio/acpi/pnp_config.asl | 16 | ||||
-rw-r--r-- | src/superio/acpi/pnp_generic.asl | 2 | ||||
-rw-r--r-- | src/superio/acpi/pnp_kbc.asl | 10 | ||||
-rw-r--r-- | src/superio/acpi/pnp_uart.asl | 2 |
5 files changed, 27 insertions, 27 deletions
diff --git a/src/superio/acpi/pnp.asl b/src/superio/acpi/pnp.asl index 941e02b190..f403a669b1 100644 --- a/src/superio/acpi/pnp.asl +++ b/src/superio/acpi/pnp.asl @@ -44,18 +44,18 @@ #define PNP_GENERIC_STA(LDN) \ ENTER_CONFIG_MODE (LDN)\ If (PNP_DEVICE_ACTIVE) {\ - Store (DEVICE_PRESENT_ACTIVE, Local0)\ + Local0 = DEVICE_PRESENT_ACTIVE \ }\ Else\ {\ - Store (DEVICE_PRESENT_INACTIVE, Local0)\ + Local0 = DEVICE_PRESENT_INACTIVE \ }\ EXIT_CONFIG_MODE ()\ Return (Local0)\ #define PNP_GENERIC_DIS(LDN) \ ENTER_CONFIG_MODE (LDN)\ - Store (Zero, PNP_DEVICE_ACTIVE)\ + PNP_DEVICE_ACTIVE = Zero \ EXIT_CONFIG_MODE ()\ @@ -63,7 +63,7 @@ * Current power state (returns the chip's state) */ #define PNP_DEFAULT_PSC \ - Store(^^_PSC (), Local0)\ + Local0 = ^^_PSC () \ Return (Local0) /* @@ -76,10 +76,10 @@ * bit */ #define PNP_GENERIC_PSC(PM_REG, PM_VAL, PM_LDN) \ - Store(^^_PSC (), Local0)\ + Local0 = ^^_PSC () \ If (Local0) { Return (Local0) }\ ENTER_CONFIG_MODE (PM_LDN)\ - Store (PM_REG, Local0)\ + Local0 = PM_REG \ EXIT_CONFIG_MODE ()\ If (Local0 == PM_VAL) { Return (3) }\ Else { Return (0) }\ @@ -87,13 +87,13 @@ /* Disable power saving mode */ #define PNP_GENERIC_PS0(PM_REG, PM_VAL, PM_LDN) \ ENTER_CONFIG_MODE (PM_LDN)\ - Store (Not(PM_VAL), PM_REG)\ + PM_REG = Not(PM_VAL) \ EXIT_CONFIG_MODE () /* Enable power saving mode */ #define PNP_GENERIC_PS3(PM_REG, PM_VAL, PM_LDN) \ ENTER_CONFIG_MODE (PM_LDN)\ - Store (PM_VAL, PM_REG)\ + PM_REG = PM_VAL \ EXIT_CONFIG_MODE () @@ -103,8 +103,8 @@ CreateWordField (RESOURCE_TEMPLATE, IO_TAG._MIN, IO_TAG##I)\ CreateWordField (RESOURCE_TEMPLATE, IO_TAG._MAX, IO_TAG##A)\ Or (ShiftLeft (IO_FROM##_HIGH_BYTE, 8), IO_FROM##_LOW_BYTE, Local0)\ - Store (Local0, IO_TAG##I)\ - Store (Local0, IO_TAG##A) + IO_TAG##I = Local0 \ + IO_TAG##A = Local0 #define PNP_READ_IRQ(IRQ_FROM, RESOURCE_TEMPLATE, IRQ_TAG) \ CreateWordField (RESOURCE_TEMPLATE, IRQ_TAG._INT, IRQ_TAG##W)\ @@ -116,8 +116,8 @@ #define PNP_WRITE_IO(IO_TO, RESOURCE, IO_TAG) \ CreateWordField (RESOURCE, IO_TAG._MIN, IO_TAG##I)\ - Store (And(IO_TAG##I, 0xff), IO_TO##_LOW_BYTE)\ - Store (IO_TAG##I >> 8, IO_TO##_HIGH_BYTE) + IO_TO##_LOW_BYTE = And(IO_TAG##I, 0xff) \ + IO_TO##_HIGH_BYTE = IO_TAG##I >> 8 #define PNP_WRITE_IRQ(IRQ_TO, RESOURCE, IRQ_TAG) \ CreateWordField (RESOURCE, IRQ_TAG._INT, IRQ_TAG##W)\ diff --git a/src/superio/acpi/pnp_config.asl b/src/superio/acpi/pnp_config.asl index 483bb82e11..d7cca074d7 100644 --- a/src/superio/acpi/pnp_config.asl +++ b/src/superio/acpi/pnp_config.asl @@ -35,19 +35,19 @@ Method (ENTER_CONFIG_MODE, 1) { Acquire (CONF_MODE_MUTEX, 0xFFFF) #ifdef PNP_ENTER_MAGIC_1ST - Store (PNP_ENTER_MAGIC_1ST, PNP_ADDR_REG) + PNP_ADDR_REG = PNP_ENTER_MAGIC_1ST #ifdef PNP_ENTER_MAGIC_2ND - Store (PNP_ENTER_MAGIC_2ND, PNP_ADDR_REG) + PNP_ADDR_REG = PNP_ENTER_MAGIC_2ND #ifdef PNP_ENTER_MAGIC_3RD - Store (PNP_ENTER_MAGIC_3RD, PNP_ADDR_REG) + PNP_ADDR_REG = PNP_ENTER_MAGIC_3RD #ifdef PNP_ENTER_MAGIC_4TH - Store (PNP_ENTER_MAGIC_4TH, PNP_ADDR_REG) + PNP_ADDR_REG = PNP_ENTER_MAGIC_4TH #endif #endif #endif #endif If (Arg0 < PNP_NO_LDN_CHANGE) { - Store(Arg0, PNP_LOGICAL_DEVICE) + PNP_LOGICAL_DEVICE = Arg0 } } @@ -58,10 +58,10 @@ Method (ENTER_CONFIG_MODE, 1) Method (EXIT_CONFIG_MODE) { #ifdef PNP_EXIT_MAGIC_1ST - Store (PNP_EXIT_MAGIC_1ST, PNP_ADDR_REG) + PNP_ADDR_REG = PNP_EXIT_MAGIC_1ST #endif #if defined(PNP_EXIT_SPECIAL_REG) && defined(PNP_EXIT_SPECIAL_VAL) - Store (PNP_EXIT_SPECIAL_VAL, PNP_EXIT_SPECIAL_REG) + PNP_EXIT_SPECIAL_REG = PNP_EXIT_SPECIAL_VAL #endif Release (CONF_MODE_MUTEX) } @@ -72,5 +72,5 @@ Method (EXIT_CONFIG_MODE) */ Method (SWITCH_LDN, 1) { - Store(Arg0, PNP_LOGICAL_DEVICE) + PNP_LOGICAL_DEVICE = Arg0 } diff --git a/src/superio/acpi/pnp_generic.asl b/src/superio/acpi/pnp_generic.asl index 2bcc139b67..8ffc507278 100644 --- a/src/superio/acpi/pnp_generic.asl +++ b/src/superio/acpi/pnp_generic.asl @@ -168,7 +168,7 @@ Device (SUPERIO_ID(PN, SUPERIO_PNP_LDN)) { #ifdef SUPERIO_PNP_DMA PNP_WRITE_DMA(PNP_DMA0, Arg0, DM0) #endif - Store (One, PNP_DEVICE_ACTIVE) + PNP_DEVICE_ACTIVE = One EXIT_CONFIG_MODE () } diff --git a/src/superio/acpi/pnp_kbc.asl b/src/superio/acpi/pnp_kbc.asl index ba03e19f6a..4fd805f8fa 100644 --- a/src/superio/acpi/pnp_kbc.asl +++ b/src/superio/acpi/pnp_kbc.asl @@ -46,7 +46,7 @@ Device (SUPERIO_ID(KBD, SUPERIO_KBC_LDN)) { Method (_DIS) { ENTER_CONFIG_MODE (SUPERIO_KBC_LDN) - Store (Zero, PNP_DEVICE_ACTIVE) + PNP_DEVICE_ACTIVE = Zero EXIT_CONFIG_MODE () #if defined(SUPERIO_KBC_PS2LDN) Notify (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN), 1) @@ -95,7 +95,7 @@ Device (SUPERIO_ID(KBD, SUPERIO_KBC_LDN)) { PNP_WRITE_IO(PNP_IO0, Arg0, IO0) PNP_WRITE_IO(PNP_IO1, Arg0, IO1) PNP_WRITE_IRQ(PNP_IRQ0, Arg0, IR0) - Store (One, PNP_DEVICE_ACTIVE) + PNP_DEVICE_ACTIVE = One EXIT_CONFIG_MODE () #if defined(SUPERIO_KBC_PS2LDN) Notify (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN), 1) @@ -155,7 +155,7 @@ Device (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN)) { Method (_STA) { - Store (^^SUPERIO_ID(KBD, SUPERIO_KBC_LDN)._STA (), Local0) + Local0 = ^^SUPERIO_ID(KBD, SUPERIO_KBC_LDN)._STA () If (Local0 == DEVICE_PRESENT_ACTIVE) { PNP_GENERIC_STA(SUPERIO_KBC_PS2LDN) } Else { @@ -166,7 +166,7 @@ Device (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN)) { Method (_DIS) { ENTER_CONFIG_MODE (SUPERIO_KBC_PS2LDN) - Store (Zero, PNP_DEVICE_ACTIVE) + PNP_DEVICE_ACTIVE = Zero EXIT_CONFIG_MODE () } @@ -200,7 +200,7 @@ Device (SUPERIO_ID(PS2, SUPERIO_KBC_PS2LDN)) { }) ENTER_CONFIG_MODE (SUPERIO_KBC_PS2LDN) PNP_WRITE_IRQ(PNP_IRQ0, Arg0, IR1) - Store (One, PNP_DEVICE_ACTIVE) + PNP_DEVICE_ACTIVE = One EXIT_CONFIG_MODE () } } diff --git a/src/superio/acpi/pnp_uart.asl b/src/superio/acpi/pnp_uart.asl index f780063be4..0b0acc72f0 100644 --- a/src/superio/acpi/pnp_uart.asl +++ b/src/superio/acpi/pnp_uart.asl @@ -112,7 +112,7 @@ Device (SUPERIO_ID(SER, SUPERIO_UART_LDN)) { ENTER_CONFIG_MODE (SUPERIO_UART_LDN) PNP_WRITE_IO(PNP_IO0, Arg0, IO0) PNP_WRITE_IRQ(PNP_IRQ0, Arg0, IR0) - Store (One, PNP_DEVICE_ACTIVE) + PNP_DEVICE_ACTIVE = One EXIT_CONFIG_MODE () } } |