soc/amd/picasso,stoneyridge: Unify set_nvs_sws()

Change-Id: I673f038b4ce3c4141db128a65be71e7a242dfd28
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48856
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Kyösti Mälkki
2020-12-22 06:34:02 +02:00
committed by Felix Held
parent b64cdebd2d
commit f1b0935ec4
6 changed files with 65 additions and 69 deletions

View File

@@ -402,19 +402,6 @@ static void sb_init_acpi_ports(void)
PM_ACPI_TIMER_EN_EN);
}
static void set_nvs_sws(void *unused)
{
struct chipset_state *state;
state = cbmem_find(CBMEM_ID_POWER_STATE);
if (state == NULL)
return;
pm_fill_gnvs(&state->gpe_state);
}
BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, set_nvs_sws, NULL);
void southbridge_init(void *chip_info)
{
struct chipset_state *state;