mb/google/brya/acpi: Modify NBCI _DSM subfunction

The NBCI "get callbacks" _DSM subfunction should utilize the same "get
callbacks" subfunction from the GPS _DSM subfunction; this patch adds
that Method call into the ACPI code.

Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: Idf2f148b5a95acccb02f47cba1ef33a9fc16bcd9
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65483
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Robert Zieba <robertzieba@google.com>
Reviewed-by: Subrata Banik <subratabanik@google.com>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
This commit is contained in:
Tim Wawrzynczak 2022-06-28 12:04:49 -06:00
parent ce29eab035
commit 58f80bac47
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,8 @@
/* 'DR' in ASCII, for DRiver Object */
#define NBCI_OBJTYPE_DR 0x4452
#define GPS_FUNC_GETCALLBACKS 0x13
Method (NBCI, 2, Serialized)
{
Switch (ToInteger (Arg0))
@ -30,7 +32,8 @@ Method (NBCI, 2, Serialized)
}
Case (NBCI_FUNC_GETCALLBACKS)
{
Return (0)
/* Re-use the GPS subfunction's GETCALLBACKS Method */
Return (GPS (GPS_FUNC_GETCALLBACKS, Arg1))
}
Case (NBCI_FUNC_GETOBJBYTYPE)
{