diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2021-05-07 20:08:10 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-05-08 18:21:25 +0000 |
commit | 38ea678258ff89c4e46befa6f2287fb2cd5461fd (patch) | |
tree | b7dec0c75184b16afa5f694745fc8e3585ed6948 /src/soc/amd/picasso/acpi/cpu.asl | |
parent | f061017480ed6bed412714c33b4a621271feffbb (diff) |
soc/amd/picasso/acpi/cpu: move WAL1 method that calls ALIB to common
TEST=Mandolin still boots into Linux and there's no ACPI warning in
dmesg.
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I7e6d38ebeae5e55a4a65930b989838532ab9c446
Reviewed-on: https://review.coreboot.org/c/coreboot/+/53920
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd/picasso/acpi/cpu.asl')
-rw-r--r-- | src/soc/amd/picasso/acpi/cpu.asl | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/src/soc/amd/picasso/acpi/cpu.asl b/src/soc/amd/picasso/acpi/cpu.asl index 869602cc27..b7395fcaca 100644 --- a/src/soc/amd/picasso/acpi/cpu.asl +++ b/src/soc/amd/picasso/acpi/cpu.asl @@ -1,32 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ -#include <amdblocks/alib.h> - -/* - * Wrapper method that calls ALIB function 1 to report current AC/DC state. - */ -Method (WAL1) -{ - /* Send ALIB Function 1 the AC/DC state */ - Local0 = Buffer (0x03) {} - CreateWordField (Local0, 0, F1SZ) - CreateByteField (Local0, 2, F1DA) - - /* First argument is size i.e. 3 bytes */ - F1SZ = 3 - - /* - * Second argument is power state i.e. AC or DC. - * ALIB expects AC = 0, DC = 1. - * PWRS reports AC = 1, DC = 0. - * - * Hence, need to invert the state of PWRS. - */ - F1DA = \PWRS ^ 1 - - Printf ("ALIB call: func 1 params %o", Local0) - \_SB.ALIB (ALIB_FUNCTION_REPORT_AC_DC_STATE, Local0) -} +#include <soc/amd/common/acpi/alib.asl> Method (PNOT) { |