From 58f80bac479d5d34c1b4f7f15b8ebf4e6996b3bb Mon Sep 17 00:00:00 2001 From: Tim Wawrzynczak Date: Tue, 28 Jun 2022 12:04:49 -0600 Subject: [PATCH] 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 Change-Id: Idf2f148b5a95acccb02f47cba1ef33a9fc16bcd9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65483 Tested-by: build bot (Jenkins) Reviewed-by: Robert Zieba Reviewed-by: Subrata Banik Reviewed-by: Eric Lai --- src/mainboard/google/brya/acpi/nbci.asl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/brya/acpi/nbci.asl b/src/mainboard/google/brya/acpi/nbci.asl index 0564f7aea4..274c04be7f 100644 --- a/src/mainboard/google/brya/acpi/nbci.asl +++ b/src/mainboard/google/brya/acpi/nbci.asl @@ -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) {