diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-12 01:36:53 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-12 22:16:44 +0000 |
commit | 447c399d35ecf169f78531b26d474ef1261d981d (patch) | |
tree | d42bf6c55079feb5bed877f0c39760d239b1f677 /src/soc/intel | |
parent | 4bbd807c01defa0c88af7635b4c7d27c67dde15d (diff) |
soc/intel/acpi: Replace Multiply(a,b,c) with ASL 2.0 syntax
Replace `Multiply (a, b, c)` with `c = a * b`.
Change-Id: I97332e3008ed2e26a75c067baffdabfc7cfcf65f
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70627
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/baytrail/acpi/dptf/dptf.asl | 2 | ||||
-rw-r--r-- | src/soc/intel/braswell/acpi/dptf/dptf.asl | 2 | ||||
-rw-r--r-- | src/soc/intel/braswell/acpi/lpc.asl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/soc/intel/baytrail/acpi/dptf/dptf.asl b/src/soc/intel/baytrail/acpi/dptf/dptf.asl index b8b05f78bb..db7f80c722 100644 --- a/src/soc/intel/baytrail/acpi/dptf/dptf.asl +++ b/src/soc/intel/baytrail/acpi/dptf/dptf.asl @@ -60,7 +60,7 @@ Device (DPTF) /* Convert from Degrees C to 1/10 Kelvin for ACPI */ Method (CTOK, 1) { /* 10th of Degrees C */ - Multiply (Arg0, 10, Local0) + Local0 = Arg0 * 10 /* Convert to Kelvin */ Local0 += 2732 diff --git a/src/soc/intel/braswell/acpi/dptf/dptf.asl b/src/soc/intel/braswell/acpi/dptf/dptf.asl index 5047fca11f..443447cd22 100644 --- a/src/soc/intel/braswell/acpi/dptf/dptf.asl +++ b/src/soc/intel/braswell/acpi/dptf/dptf.asl @@ -60,7 +60,7 @@ Device (DPTF) /* Convert from Degrees C to 1/10 Kelvin for ACPI */ Method (CTOK, 1) { /* 10th of Degrees C */ - Multiply (Arg0, 10, Local0) + Local0 = Arg0 * 10 /* Convert to Kelvin */ Local0 += 2732 diff --git a/src/soc/intel/braswell/acpi/lpc.asl b/src/soc/intel/braswell/acpi/lpc.asl index fca80170b8..fb61c533f5 100644 --- a/src/soc/intel/braswell/acpi/lpc.asl +++ b/src/soc/intel/braswell/acpi/lpc.asl @@ -37,7 +37,7 @@ Device (LPCB) { CreateDwordField (^RBUF, ^FBAR._BAS, FBAS) CreateDwordField (^RBUF, ^FBAR._LEN, FLEN) - Multiply(CONFIG_COREBOOT_ROMSIZE_KB, 1024, Local0) + Local0 = CONFIG_COREBOOT_ROMSIZE_KB * 1024 Store(Local0, FLEN) FBAS = 0xffffffff - Local0 + 1 Return (^RBUF) |