ACPI: Declare GNVS variables globally
There is a common place where acpigen generates these, so the declarations for the OperationRegions should be centralized too. Change-Id: I772492ca9e651b60244c565d1e926dc2ad33cfd8 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49795 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -71,12 +71,14 @@ void acpi_fill_gnvs(void)
|
||||
mainboard_fill_gnvs(gnvs);
|
||||
|
||||
acpigen_write_scope("\\");
|
||||
acpigen_write_name_dword("NVSA", (uintptr_t)gnvs);
|
||||
acpigen_write_name_dword("NVB0", (uintptr_t)gnvs);
|
||||
acpigen_write_name_dword("NVS0", CONFIG(MAINBOARD_HAS_CHROMEOS) ? 0x1000 : 0x100);
|
||||
acpigen_pop_len();
|
||||
|
||||
if (CONFIG(ACPI_HAS_DEVICE_NVS)) {
|
||||
acpigen_write_scope("\\");
|
||||
acpigen_write_name_dword("NVSD", (uintptr_t)gnvs + GNVS_DEVICE_NVS_OFFSET);
|
||||
acpigen_write_name_dword("NVB1", (uintptr_t)gnvs + GNVS_DEVICE_NVS_OFFSET);
|
||||
acpigen_write_name_dword("NVS1", 0x1000);
|
||||
acpigen_pop_len();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user