summaryrefslogtreecommitdiff
path: root/src/acpi/gnvs.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-06-30 11:41:47 +0300
committerAngel Pons <th3fanbus@gmail.com>2021-01-13 18:28:55 +0000
commit2ab4a96668df843da480727ff03974a027db28b9 (patch)
treef5f6772152a7336325c64dbdf4d050681c23ded1 /src/acpi/gnvs.c
parente1ff3cd0144c6b1f85fb8cc1f7694414f94ad7e2 (diff)
ACPI: Add common acpi_fill_gnvs()
Change-Id: I515e830808a95eee3ce72b16fd26da6ec79dac85 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48718 Reviewed-by: Lance Zhao Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/acpi/gnvs.c')
-rw-r--r--src/acpi/gnvs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/acpi/gnvs.c b/src/acpi/gnvs.c
index c8478eed89..27b4b8e82d 100644
--- a/src/acpi/gnvs.c
+++ b/src/acpi/gnvs.c
@@ -77,3 +77,12 @@ void acpi_inject_nvsa(void)
acpigen_write_name_dword("NVSA", (uintptr_t)gnvs);
acpigen_pop_len();
}
+
+void acpi_fill_gnvs(void)
+{
+ if (!gnvs)
+ return;
+
+ soc_fill_gnvs(gnvs);
+ mainboard_fill_gnvs(gnvs);
+}