From 37eb24be1585a76b293999df43e9a83af7d7ba09 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Mon, 11 Jan 2021 18:40:37 +0200 Subject: ACPI: Clean up GNVS initialisation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the common approach platform does not need to implement the common accessors or sizeof() function. Change-Id: I1050a252f765c763c1ae2d1610cbfb0d973ba026 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/49793 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/acpi/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/acpi/acpi.c') diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index 6f64d108f9..05ada084ab 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -1473,7 +1473,8 @@ unsigned long write_acpi_tables(unsigned long start) acpigen_set_current((char *) current); - acpi_fill_gnvs(); + if (CONFIG(ACPI_SOC_NVS)) + acpi_fill_gnvs(); for (dev = all_devices; dev; dev = dev->next) if (dev->ops && dev->ops->acpi_inject_dsdt) -- cgit v1.2.3