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: 148fd99365
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>
This commit is contained in:
Arthur Heymans 2022-05-09 15:23:30 +02:00 committed by Felix Singer
commit 52473bd79c

View file

@ -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)
}
}