ACPI: Have single call-site for acpi_inject_nvsa()
Change-Id: I61a9b07ec3fdaeef0622df82e106405f01e89a9e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48719 Reviewed-by: Lance Zhao Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Angel Pons
parent
c84572e0e1
commit
91946c5b13
@@ -68,16 +68,6 @@ void *gnvs_get_or_create(void)
|
||||
return gnvs;
|
||||
}
|
||||
|
||||
void acpi_inject_nvsa(void)
|
||||
{
|
||||
if (!gnvs)
|
||||
return;
|
||||
|
||||
acpigen_write_scope("\\");
|
||||
acpigen_write_name_dword("NVSA", (uintptr_t)gnvs);
|
||||
acpigen_pop_len();
|
||||
}
|
||||
|
||||
void acpi_fill_gnvs(void)
|
||||
{
|
||||
if (!gnvs)
|
||||
@@ -85,4 +75,8 @@ void acpi_fill_gnvs(void)
|
||||
|
||||
soc_fill_gnvs(gnvs);
|
||||
mainboard_fill_gnvs(gnvs);
|
||||
|
||||
acpigen_write_scope("\\");
|
||||
acpigen_write_name_dword("NVSA", (uintptr_t)gnvs);
|
||||
acpigen_pop_len();
|
||||
}
|
||||
|
Reference in New Issue
Block a user