summaryrefslogtreecommitdiff
path: root/src/superio/acpi/pnp_config.asl
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-12 02:34:43 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-14 00:46:41 +0000
commitfacf7d077cef1c324fe9b239c63bffd612e60732 (patch)
treece531c01ba903b8b9806b0302a6094919da58bc2 /src/superio/acpi/pnp_config.asl
parent18af706d501730de4b1471886f7b47b95a522449 (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/acpi/pnp_config.asl')
-rw-r--r--src/superio/acpi/pnp_config.asl16
1 files changed, 8 insertions, 8 deletions
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
}