diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-12-22 08:57:40 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2021-01-13 18:28:12 +0000 |
commit | 39c16b5c6005d5a0a1890810653759ca12a1413c (patch) | |
tree | 1fe9909d1c4de51dcdf49fb90ceffbcafbb1bd94 /src/soc/amd/common/block/acpi/acpi.c | |
parent | a36b8472eb35d4725b3d9e296fd24c878114a989 (diff) |
soc/amd: Rename to pm_fill_gnvs()
Change-Id: I80f92bed737904e6ffc858b45459405fe76f1d04
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48851
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jason Glenesk <jason.glenesk@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/amd/common/block/acpi/acpi.c')
-rw-r--r-- | src/soc/amd/common/block/acpi/acpi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/soc/amd/common/block/acpi/acpi.c b/src/soc/amd/common/block/acpi/acpi.c index 4ca6599536..572faa51a1 100644 --- a/src/soc/amd/common/block/acpi/acpi.c +++ b/src/soc/amd/common/block/acpi/acpi.c @@ -3,12 +3,14 @@ #include <amdblocks/acpimmio.h> #include <amdblocks/acpi.h> #include <acpi/acpi.h> +#include <acpi/acpi_gnvs.h> #include <bootmode.h> #include <console/console.h> #include <elog.h> #include <halt.h> #include <security/vboot/vboot_common.h> #include <soc/southbridge.h> +#include <soc/nvs.h> void poweroff(void) { @@ -138,9 +140,12 @@ static int get_index_bit(uint32_t value, uint16_t limit) return i; } -void acpi_fill_gnvs(struct global_nvs *gnvs, const struct acpi_pm_gpe_state *state) +void pm_fill_gnvs(const struct acpi_pm_gpe_state *state) { int index; + struct global_nvs *gnvs = acpi_get_gnvs(); + if (gnvs == NULL) + return; index = get_index_bit(state->pm1_sts & state->pm1_en, PM1_LIMIT); if (index < 0) |