ACPI: Replace uses of CBMEM_ID_ACPI_GNVS
Change-Id: I45a2d9cb7f07609a1ff03fd70f17c3f2d4f013b9 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48705 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Nico Huber
parent
46e37c6343
commit
9f441dfc70
@@ -524,18 +524,12 @@ unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
|
||||
void southbridge_inject_dsdt(const struct device *device)
|
||||
{
|
||||
struct global_nvs *gnvs;
|
||||
struct global_nvs *gnvs = acpi_get_gnvs();
|
||||
if (!gnvs)
|
||||
return;
|
||||
|
||||
gnvs = cbmem_find(CBMEM_ID_ACPI_GNVS);
|
||||
|
||||
if (gnvs) {
|
||||
acpi_create_gnvs(gnvs);
|
||||
|
||||
/* Add it to DSDT. */
|
||||
acpigen_write_scope("\\");
|
||||
acpigen_write_name_dword("NVSA", (u32) (uintptr_t)gnvs);
|
||||
acpigen_pop_len();
|
||||
}
|
||||
acpi_create_gnvs(gnvs);
|
||||
acpi_inject_nvsa();
|
||||
}
|
||||
|
||||
/* Save wake source information for calculating ACPI _SWS values */
|
||||
|
Reference in New Issue
Block a user