summaryrefslogtreecommitdiff
path: root/src/acpi
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
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')
-rw-r--r--src/acpi/acpi.c3
-rw-r--r--src/acpi/gnvs.c9
2 files changed, 12 insertions, 0 deletions
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c
index ee30391923..6f64d108f9 100644
--- a/src/acpi/acpi.c
+++ b/src/acpi/acpi.c
@@ -1472,6 +1472,9 @@ unsigned long write_acpi_tables(unsigned long start)
current += sizeof(acpi_header_t);
acpigen_set_current((char *) current);
+
+ acpi_fill_gnvs();
+
for (dev = all_devices; dev; dev = dev->next)
if (dev->ops && dev->ops->acpi_inject_dsdt)
dev->ops->acpi_inject_dsdt(dev);
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);
+}