From 4abc73183134def757c553aa4eb195fffa824100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Tue, 12 Jan 2021 17:46:30 +0200 Subject: ACPI: Separate device_nvs_t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove typedef device_nvs_t and move struct device_nvs outside of global_nvs. Also remove padding and the reserve for chromeos_acpi_t. Change-Id: I878746b1f0f9152a27dc58e373d58115e2dff22c Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/49476 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/mainboard/intel/strago/acpi_tables.c | 4 +++- src/mainboard/intel/wtm2/dsdt.asl | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src/mainboard/intel') diff --git a/src/mainboard/intel/strago/acpi_tables.c b/src/mainboard/intel/strago/acpi_tables.c index 97795cd0ea..a600d0a15b 100644 --- a/src/mainboard/intel/strago/acpi_tables.c +++ b/src/mainboard/intel/strago/acpi_tables.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include "onboard.h" @@ -24,7 +25,8 @@ void mainboard_fill_gnvs(struct global_nvs *gnvs) gnvs->dpte = 1; /* PMIC is configured in I2C1, hidden it from OS */ - gnvs->dev.lpss_en[LPSS_NVS_I2C2] = 0; + struct device_nvs *dev_nvs = acpi_get_device_nvs(); + dev_nvs->lpss_en[LPSS_NVS_I2C2] = 0; } unsigned long acpi_fill_madt(unsigned long current) diff --git a/src/mainboard/intel/wtm2/dsdt.asl b/src/mainboard/intel/wtm2/dsdt.asl index 7d58eb6930..37c07f3f4c 100644 --- a/src/mainboard/intel/wtm2/dsdt.asl +++ b/src/mainboard/intel/wtm2/dsdt.asl @@ -18,6 +18,7 @@ DefinitionBlock( // global NVS and variables #include + #include // CPU #include -- cgit v1.2.3