summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2022-05-09 15:23:30 +0200
committerFelix Singer <felixsinger@posteo.net>2023-01-12 02:15:09 +0000
commit52473bd79c847a62dee679032146bf9509f06b0a (patch)
tree7bd56046d1446e485072f181fd658479ffdfe159
parent75f1500cb61f281766e4f6261a92cc0e3075afc8 (diff)
downloadcoreboot-52473bd79c847a62dee679032146bf9509f06b0a.tar.gz
coreboot-52473bd79c847a62dee679032146bf9509f06b0a.tar.bz2
coreboot-52473bd79c847a62dee679032146bf9509f06b0a.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. Original-signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Original-reviewed-on: https://review.coreboot.org/c/coreboot/+/64218 Original-reviewed-by: Nico Huber <nico.h@gmx.de> Original-reviewed-by: Elyes Haouas <ehaouas@noos.fr> Original-tested-by: build bot (Jenkins) <no-reply@coreboot.org> Original-reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com> Cherry-picked-from: 148fd99365bb923cd7af37afcd93efdd781fd819 Change-Id: I2726714cbe076fc7c772c06883d8551400ff2baa Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70903 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
-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)
+ }
}