summaryrefslogtreecommitdiffstats
path: root/src/superio
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-05-09 15:23:30 +0200
committerMartin Roth <martin.roth@amd.corp-partner.google.com>2022-11-17 21:19:22 +0000
commit148fd99365bb923cd7af37afcd93efdd781fd819 (patch)
treed34976aeeed6e8989cae89a8ef28566910c497a6 /src/superio
parentd57b82111a87767184405cffc1bad3ef58925a6c (diff)
downloadcoreboot-148fd99365bb923cd7af37afcd93efdd781fd819.tar.gz
coreboot-148fd99365bb923cd7af37afcd93efdd781fd819.tar.bz2
coreboot-148fd99365bb923cd7af37afcd93efdd781fd819.zip
superio/acpi/pnp_generic.asl: Add _PRS for each device
Simply return the current resource settings in the _PRS method. This means that coreboot has to correctly set up the resources on the device. This won't result in any regression as without _PRS the ACPI OS would not know what resources settings are valid, so it would never use _SRS. Change-Id: I2726714cbe076fc7c772c06883d8551400ff2baa Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64218 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'src/superio')
-rw-r--r--src/superio/acpi/pnp_generic.asl8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/superio/acpi/pnp_generic.asl b/src/superio/acpi/pnp_generic.asl
index d0d9a2d9bab4..2bcc139b67c0 100644
--- a/src/superio/acpi/pnp_generic.asl
+++ b/src/superio/acpi/pnp_generic.asl
@@ -171,4 +171,12 @@ Device (SUPERIO_ID(PN, SUPERIO_PNP_LDN)) {
Store (One, PNP_DEVICE_ACTIVE)
EXIT_CONFIG_MODE ()
}
+
+ /* This is used for _SRS. Since _DIS only disables the device
+ * without changing the resources this works.
+ */
+ Method (_PRS, 0)
+ {
+ return (_CRS)
+ }
}