summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/braswell
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-03-16 19:02:26 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2021-06-14 19:45:56 +0000
commit4bd9187dadaf4f3be5a1776d98d1f79cdfb23de8 (patch)
treecadad49316ba0b6e77d9304a5505dcede8860ea5 /src/soc/intel/braswell
parent3dc1792f1df9a9cd982bb63d3b29cc16c08bd7f6 (diff)
downloadcoreboot-4bd9187dadaf4f3be5a1776d98d1f79cdfb23de8.tar.gz
coreboot-4bd9187dadaf4f3be5a1776d98d1f79cdfb23de8.tar.bz2
coreboot-4bd9187dadaf4f3be5a1776d98d1f79cdfb23de8.zip
ACPI: Refactor use of global and device NVS
After ChromeOS NVS was moved to a separate allocation and the use of multiple OperationRegions, maintaining the fixed offsets is not necessary. Use actual structure size for OperationRegions, but align the allocations to 8 bytes or sizeof(uint64_t). Change-Id: I9c73b7c44d234af42c571b23187b924ca2c3894a Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51639 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/braswell')
-rw-r--r--src/soc/intel/braswell/Kconfig1
-rw-r--r--src/soc/intel/braswell/acpi.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/soc/intel/braswell/Kconfig b/src/soc/intel/braswell/Kconfig
index f91e7de18cef..9a55672e366d 100644
--- a/src/soc/intel/braswell/Kconfig
+++ b/src/soc/intel/braswell/Kconfig
@@ -8,7 +8,6 @@ if SOC_INTEL_BRASWELL
config CPU_SPECIFIC_OPTIONS
def_bool y
select ACPI_INTEL_HARDWARE_SLEEP_VALUES
- select ACPI_HAS_DEVICE_NVS
select ARCH_ALL_STAGES_X86_32
select BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES
select BOOT_DEVICE_SUPPORTS_WRITES
diff --git a/src/soc/intel/braswell/acpi.c b/src/soc/intel/braswell/acpi.c
index 2d7ca3c9ca3e..c70b69dc21c7 100644
--- a/src/soc/intel/braswell/acpi.c
+++ b/src/soc/intel/braswell/acpi.c
@@ -13,6 +13,7 @@
#include <device/pci.h>
#include <drivers/intel/gma/opregion.h>
#include <soc/acpi.h>
+#include <soc/device_nvs.h>
#include <soc/gfx.h>
#include <soc/iomap.h>
#include <soc/irq.h>
@@ -60,6 +61,11 @@ static acpi_cstate_t cstate_map[] = {
}
};
+size_t size_of_dnvs(void)
+{
+ return sizeof(struct device_nvs);
+}
+
void soc_fill_gnvs(struct global_nvs *gnvs)
{
/* Fill in the Wi-Fi Region ID */