summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/stoneyridge/southbridge.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-12-22 08:57:40 +0200
committerAngel Pons <th3fanbus@gmail.com>2021-01-13 18:28:12 +0000
commit39c16b5c6005d5a0a1890810653759ca12a1413c (patch)
tree1fe9909d1c4de51dcdf49fb90ceffbcafbb1bd94 /src/soc/amd/stoneyridge/southbridge.c
parenta36b8472eb35d4725b3d9e296fd24c878114a989 (diff)
downloadcoreboot-39c16b5c6005d5a0a1890810653759ca12a1413c.tar.gz
coreboot-39c16b5c6005d5a0a1890810653759ca12a1413c.tar.bz2
coreboot-39c16b5c6005d5a0a1890810653759ca12a1413c.zip
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/stoneyridge/southbridge.c')
-rw-r--r--src/soc/amd/stoneyridge/southbridge.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/soc/amd/stoneyridge/southbridge.c b/src/soc/amd/stoneyridge/southbridge.c
index 4436e0ebf0b4..3aecbb47586b 100644
--- a/src/soc/amd/stoneyridge/southbridge.c
+++ b/src/soc/amd/stoneyridge/southbridge.c
@@ -404,16 +404,12 @@ static void sb_init_acpi_ports(void)
static void set_nvs_sws(void *unused)
{
struct acpi_pm_gpe_state *state;
- struct global_nvs *gnvs;
state = cbmem_find(CBMEM_ID_POWER_STATE);
if (state == NULL)
return;
- gnvs = acpi_get_gnvs();
- if (gnvs == NULL)
- return;
- acpi_fill_gnvs(gnvs, state);
+ pm_fill_gnvs(state);
}
BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, set_nvs_sws, NULL);